Function at 0x500630
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
mov esi, ecx
mov byte [esp + 0xb], 0
push edi
xor ecx, ecx
mov dword [esp + 0x10], esi
mov ebx, edx
mov dword [esp + 0x50], ecx
mov edi, dword [esi + 8]
xor edx, edx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], edx
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x20], edi
mov dword [esp + 0x54], ecx
cmp dword [edi + 0x70], ecx
jg 0x50068c
push edx
push edx
push edx
mov edx, 0x11
mov ecx, edi
call fcn.004af9d0
add esp, 0xc
mov dword [esp + 0x54], eax
jmp 0x5006af
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x11
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], edx
mov dword [eax + ecx*4 + 0x10], edx
mov ecx, dword [ebp + 8]
xor edx, edx
mov edi, dword [ebp + 0x14]
xorps xmm0, xmm0
mov ebx, dword [ebx + 0x14]
mov dword [esp + 0x14], edx
mov eax, dword [ecx + 0x10]
mov edi, dword [edi + 0x48]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x20]
movlpd qword [esp + 0x58], xmm0
mov eax, dword [eax + 0xc]
lea eax, [eax + eax*2]
shl eax, 4
add eax, ebx
mov dword [esp + 0x48], eax
cmp ebx, eax
jae 0x50086c
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x24], eax
jmp 0x500709
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x28]
mov esi, dword [ebx]
mov eax, dword [edx]
or eax, dword [edx + 4]
jne 0x50077a
test byte [ebx + 0xa], 2
jne 0x50077a
test byte [esi + 4], 1
jne 0x50077a
mov eax, 3
mov dword [esp + 0x68], fcn.004c65d0
mov word [esp + 0x78], ax
mov edx, esi
mov eax, dword [ecx + 0x2c]
lea ecx, [esp + 0x64]
mov dword [esp + 0x6c], 0x4c64b0
mov dword [esp + 0x7c], eax
call fcn.004c1850
cmp word [esp + 0x78], 0
je 0x50077a
mov edx, esi
mov esi, dword [esp + 0x10]
push 0
push 0
mov ecx, dword [esi]
call fcn.004c54c0
mov edx, dword [esp + 0x38]
mov ecx, esi
push eax
call fcn.004c4f50
add esp, 0xc
mov dword [esp + 0x30], eax
push dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, ebx
push dword [ebp + 0xc]
call fcn.00500550
add esp, 8
test eax, eax
je 0x50084d
mov edx, dword [ebx + 0x1c]
xor esi, esi
cmp edx, 0x40
jl 0x5007a9
mov dword [esp + 0x38], 0x80000000
jmp 0x5007c2
mov eax, edx
xor ecx, ecx
bts esi, eax
cmp eax, 0x20
cmovae ecx, esi
xor esi, ecx
cmp eax, 0x40
cmovae ecx, esi
mov dword [esp + 0x38], ecx
cmp byte [esp + 0xf], 0
jne 0x5007ef
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 4]
push dword [eax + ecx*4]
push dword [edx]
push str.automatic_index_on__s__s_
push 0x11c
call fcn.00493200
add esp, 0x10
mov byte [esp + 0xf], 1
mov eax, dword [esp + 0x38]
mov ecx, esi
and ecx, dword [esp + 0x24]
and eax, dword [esp + 0x1c]
or ecx, eax
jne 0x50084d
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x44], eax
push eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
call fcn.00501380
add esp, 4
test eax, eax
jne 0x501008
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
or dword [esp + 0x24], esi
mov edx, dword [esp + 0x44]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x14], edx
mov dword [eax + ecx*4], ebx
mov ecx, dword [esp + 0x1c]
or ecx, dword [esp + 0x38]
mov dword [esp + 0x1c], ecx
jmp 0x500855
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
add ebx, 0x30
cmp ebx, dword [esp + 0x48]
jb 0x500706
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x24]
jmp 0x500874
mov ecx, dword [esp + 0x5c]
mov ebx, dword [esp + 0x58]
movzx eax, dx
not ecx
mov edx, dword [esp + 0x28]
or ecx, 0x80000000
not ebx
mov word [edx + 0x28], ax
mov word [edx + 0x18], ax
mov eax, dword [ebp + 8]
mov dword [edx + 0x24], 0x4241
and ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x38]
and ebx, edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], ebx
mov ebx, 0x3f
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x40], edx
movzx ecx, word [eax + 0x2a]
mov dword [esp + 0x44], ecx
movzx eax, cx
cmp bx, cx
jge 0x5008ca
mov dword [esp + 0x38], ebx
jmp 0x5008d8
movsx ebx, cx
mov dword [esp + 0x38], ebx
xor ebx, ebx
cmp bx, ax
jge 0x50091c
mov edi, dword [esp + 0x38]
xor ebx, ebx
mov esi, dword [esp + 0x1c]
xor edx, edx
xor ecx, ecx
mov eax, ebx
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x24]
and ecx, esi
or edx, ecx
je 0x500907
inc dword [esp + 0x14]
inc ebx
cmp ebx, edi
jl 0x5008e2
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
jg 0x50093b
jl 0x50092b
test edx, edx
jae 0x50093b
movsx eax, cx
mov ecx, dword [esp + 0x14]
add ecx, 0xffffffc1
add ecx, eax
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x58]
mov ecx, dword [esi]
push eax
push 0
lea edx, [edx + 1]
call fcn.004d54d0
add esp, 8
mov dword [esp + 0x18], eax
test eax, eax
je 0x50100c
mov ecx, dword [esp + 0x28]
xor ebx, ebx
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [ecx + 0x20], eax
mov ecx, dword [esp + 0x3c]
mov dword [eax], str.auto_index
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x48]
jae 0x500a90
mov ecx, dword [esp + 0x5c]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x40], ecx
push dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov ecx, eax
push dword [ebp + 0xc]
call fcn.00500550
add esp, 8
test eax, eax
je 0x500a77
mov eax, dword [esp + 0x34]
xor edx, edx
mov eax, dword [eax + 0x1c]
movzx ecx, ax
mov dword [esp + 0x58], ecx
cmp eax, 0x40
jl 0x5009de
mov esi, 0x80000000
jmp 0x5009f1
xor esi, esi
bts edx, eax
cmp eax, 0x20
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
cmovae esi, edx
mov ecx, edx
mov eax, esi
and ecx, dword [esp + 0x40]
and eax, dword [esp + 0x44]
or ecx, eax
jne 0x500a77
mov eax, dword [esp + 0x34]
or dword [esp + 0x40], edx
mov edx, dword [esp + 0x58]
or dword [esp + 0x44], esi
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov word [eax + ebx*2], dx
test dword [ecx + 4], 0x200
je 0x500a2f
mov esi, dword [ecx + 0xc]
mov edx, dword [ecx + 0x10]
jmp 0x500a35
mov esi, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
test dword [edx + 4], 0x100
jne 0x500a58
test esi, esi
je 0x500a4b
test dword [esi + 4], 0x100
jne 0x500a56
mov ecx, edi
call fcn.004c4200
test eax, eax
jne 0x500a63
mov edx, esi
mov ecx, edi
call fcn.004c4200
test eax, eax
je 0x500a67
mov ecx, dword [eax]
jmp 0x500a6c
mov ecx, 0x599650
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x20]
mov dword [eax + ebx*4], ecx
inc ebx
mov eax, dword [esp + 0x34]
add eax, 0x30
mov dword [esp + 0x34], eax
cmp eax, dword [esp + 0x48]
jb 0x5009a7
mov edi, dword [esp + 0x20]
xor esi, esi
cmp dword [esp + 0x38], esi
jle 0x500ae0
mov edi, dword [esp + 0x18]
nop dword [eax]
xor edx, edx
xor ecx, ecx
mov eax, esi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x24]
and ecx, dword [esp + 0x1c]
or edx, ecx
je 0x500ad5
mov eax, dword [edi + 4]
mov word [eax + ebx*2], si
mov eax, dword [edi + 0x20]
mov dword [eax + ebx*4], 0x599650
inc ebx
inc esi
cmp esi, dword [esp + 0x38]
jl 0x500aa0
mov edi, dword [esp + 0x20]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
jg 0x500b23
jl 0x500af1
cmp dword [eax + 0x38], 0
jae 0x500b23
mov esi, dword [esp + 0x3c]
mov eax, 0x3f
mov edx, dword [esp + 0x18]
cmp ax, word [esi + 0x2a]
jge 0x500b27
mov ecx, eax
mov eax, dword [edx + 4]
mov word [eax + ebx*2], cx
inc ecx
mov eax, dword [edx + 0x20]
mov dword [eax + ebx*4], 0x599650
inc ebx
movsx eax, word [esi + 0x2a]
cmp ecx, eax
jl 0x500b06
jmp 0x500b27
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 4]
or ecx, 0xffffffff
mov esi, dword [esp + 0x10]
mov word [eax + ebx*2], cx
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x14]
inc edx
mov dword [eax + ebx*4], 0x599650
mov eax, dword [esi + 0x28]
mov dword [ecx + 8], eax
inc dword [esi + 0x28]
mov eax, dword [ecx + 8]
mov ecx, dword [edi + 0x6c]
mov dword [esp + 0x58], eax
cmp dword [edi + 0x70], ecx
jg 0x500b74
push 0
push edx
push eax
mov edx, 0x63
mov ecx, edi
call fcn.004af9d0
add esp, 0xc
jmp 0x500ba7
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x58]
mov dword [eax + ecx*4 + 4], edi
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0x63
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [esi + 8]
mov ecx, esi
mov edx, dword [esp + 0x18]
mov dword [esp + 0x58], eax
call fcn.004d7710
mov esi, eax
test esi, esi
je 0x500bed
mov edx, dword [esp + 0x58]
mov ecx, dword [edx]
cmp byte [ecx + 0x51], 0
je 0x500bdb
push esi
mov edx, 0xfffffff7
call fcn.004b0550
add esp, 4
jmp 0x500bed
mov eax, dword [edx + 0x6c]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
mov byte [eax + ecx*4 - 0x13], 0xf7
mov dword [eax + ecx*4 - 4], esi
mov edx, dword [ebp + 0x14]
movzx eax, byte [edx + 0x34]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 0x30], 0x10
lea esi, [eax + ecx*8]
mov dword [esp + 0x4c], esi
je 0x500cff
mov ecx, dword [edi + 0x6c]
mov edx, dword [esi + 0x24]
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], ecx
cmp dword [edi + 0x70], ecx
jg 0x500c44
push 0
push 0
push 0
mov edx, 0x45
mov ecx, edi
call fcn.004af9d0
mov edx, dword [esp + 0x54]
add esp, 0xc
mov dword [esp + 0x50], eax
jmp 0x500c77
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x45
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
mov esi, dword [esi + 0x20]
cmp dword [edi + 0x70], ecx
jg 0x500c9b
push esi
push 0
push edx
mov edx, 0xd
mov ecx, edi
call fcn.004af9d0
mov edx, dword [esp + 0x54]
add esp, 0xc
jmp 0x500cca
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4], 0xd
mov dword [eax + ecx*4 + 4], edx
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 0xc], esi
mov dword [eax + ecx*4 + 0x10], 0
mov esi, dword [edi + 0x6c]
cmp dword [edi + 0x70], esi
jg 0x500cea
push 0
push 0
push edx
mov edx, 0xe
mov ecx, edi
call fcn.004af9d0
add esp, 0xc
mov esi, eax
jmp 0x500d55
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xe
jmp 0x500d35
mov esi, dword [edi + 0x6c]
mov edx, dword [edx + 4]
cmp dword [edi + 0x70], esi
jg 0x500d22
push 0
push 0
push edx
mov edx, 0x25
mov ecx, edi
call fcn.004af9d0
add esp, 0xc
mov esi, eax
jmp 0x500d55
lea eax, [esi + 1]
mov dword [edi + 0x6c], eax
lea ecx, [esi + esi*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0x25
mov edi, dword [esp + 0x20]
mov dword [eax + ecx*4 + 0x10], 0
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 8], 0
mov dword [eax + ecx*4 + 4], edx
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x500d83
mov eax, dword [esp + 0x10]
push 0x10
dec dword [eax + 0x38]
mov edx, dword [eax + 0x38]
push edx
push ecx
push eax
mov dword [esp + 0x3c], edx
call fcn.004caf60
mov eax, dword [esp + 0x38]
add esp, 0x10
or dword [eax + 0x24], 0x20000
mov ecx, dword [esp + 0x10]
mov al, byte [ecx + 0x13]
test al, al
jne 0x500d96
inc dword [ecx + 0x2c]
mov eax, dword [ecx + 0x2c]
jmp 0x500da5
dec al
mov byte [ecx + 0x13], al
movzx eax, al
mov eax, dword [ecx + eax*4 + 0x94]
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push eax
mov dword [esp + 0x50], eax
mov eax, dword [ebp + 0x14]
push dword [eax + 4]
call fcn.004d94b0
mov ecx, dword [edi + 0x6c]
add esp, 0x18
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 8]
mov dword [esp + 0x58], eax
cmp dword [edi + 0x70], ecx
jg 0x500df3
mov edx, dword [esp + 0x3c]
mov ecx, edi
push 0
push edx
push eax
mov edx, 0x83
call fcn.004af9d0
add esp, 0xc
jmp 0x500e26
mov edx, dword [esp + 0x58]
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [eax + ecx*4], 0x83
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov ecx, dword [edi + 0x6c]
test ecx, ecx
jle 0x500e40
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
mov edx, 0x10
mov word [eax + ecx*4 - 0x12], dx
mov ecx, dword [edi + 0x6c]
cmp dword [esp + 0x30], 0
je 0x500e74
mov edx, dword [edi + 0xc]
not dword [esp + 0x2c]
mov eax, dword [edx + 0x3c]
add eax, dword [edx + 0x38]
jns 0x500e6a
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi + 0xc]
push edx
mov edx, edi
call fcn.004b00d0
add esp, 4
jmp 0x500e74
mov eax, dword [edx + 0x40]
mov edx, dword [esp + 0x2c]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x4c]
test byte [eax + 0x30], 0x10
je 0x500f27
mov ecx, dword [esp + 0x50]
test ecx, ecx
jns 0x500e8e
mov ecx, dword [edi + 0x6c]
dec ecx
mov eax, dword [edi]
cmp byte [eax + 0x51], 0
je 0x500e9d
mov ecx, 0x5c66d4
jmp 0x500ea6
mov eax, dword [edi + 0x68]
lea ecx, [ecx + ecx*4]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0x48]
mov edx, esi
add eax, ebx
mov ebx, dword [esp + 0x4c]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
push dword [eax + 8]
push dword [ebx + 0x28]
push dword [eax + 4]
call fcn.005004b0
mov ecx, dword [edi + 0x6c]
add esp, 0xc
cmp dword [edi + 0x70], ecx
jg 0x500ef2
push 0
push esi
push 0
mov edx, 0xb
mov ecx, edi
call fcn.004af9d0
add esp, 0xc
and dword [ebx + 0x30], 0xffffffef
jmp 0x500f92
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4], 0xb
mov dword [eax + ecx*4 + 4], 0
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
and dword [ebx + 0x30], 0xffffffef
jmp 0x500f92
mov eax, dword [ebp + 0x14]
lea edx, [esi + 1]
mov ecx, dword [edi + 0x6c]
mov ebx, dword [eax + 4]
cmp dword [edi + 0x70], ecx
jg 0x500f4d
push 0
push edx
push ebx
mov edx, 5
mov ecx, edi
call fcn.004af9d0
add esp, 0xc
jmp 0x500f7b
lea eax, [ecx + 1]
mov dword [edi + 0x6c], eax
lea ecx, [ecx + ecx*4]
mov eax, dword [edi + 0x68]
lea edx, [esi + 1]
mov dword [eax + ecx*4], 5
mov dword [eax + ecx*4 + 4], ebx
mov dword [eax + ecx*4 + 8], edx
mov dword [eax + ecx*4 + 0xc], 0
mov dword [eax + ecx*4 + 0x10], 0
mov eax, dword [edi + 0x6c]
test eax, eax
jle 0x500f92
lea ecx, [eax + eax*4]
mov edx, 3
mov eax, dword [edi + 0x68]
mov word [eax + ecx*4 - 0x12], dx
mov eax, dword [edi]
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x500fa4
mov eax, 0x5c66d4
jmp 0x500fb5
test esi, esi
lea eax, [edx - 1]
cmovns eax, esi
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
lea eax, [eax + ecx*4]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x10]
mov dword [eax + 8], edx
test ecx, ecx
je 0x500fd8
mov al, byte [esi + 0x13]
cmp al, 8
jae 0x500fd8
movzx eax, al
mov dword [esi + eax*4 + 0x94], ecx
inc byte [esi + 0x13]
mov eax, dword [edi]
mov edx, dword [edi + 0x6c]
cmp byte [eax + 0x51], 0
je 0x500fed
mov eax, 0x5c66d4
mov dword [eax + 8], edx
jmp 0x50100c
mov ecx, dword [esp + 0x54]
lea eax, [edx - 1]
test ecx, ecx
cmovns eax, ecx
lea ecx, [eax + eax*4]
mov eax, dword [edi + 0x68]
mov dword [eax + ecx*4 + 8], edx
lea eax, [eax + ecx*4]
jmp 0x50100c
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x50101d
mov ecx, dword [esi]
mov edx, eax
call fcn.004c52d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret