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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], 1
imul edx, dword [ebp + 0x10], 0x15d4
lea ebx, [esi + esi*8]
mov eax, dword [ebp + 0xc]
lea ebx, [esi + ebx*4]
mov eax, dword [eax + 0x6c]
shl ebx, 2
add eax, edx
add ebx, eax
mov eax, esi
shl eax, 3
add ebx, 0x1ac
sub eax, esi
lea eax, [esi + eax*4]
mov dword [edi + eax*8 + 0x28], 1
mov edx, dword [ebx + 0x24]
mov dword [edi + eax*8 + 0x50], edx
mov ecx, dword [ebx + 0x24]
inc ecx
cmp ecx, 5
ja case.default.0x500710
jmp dword [ecx*4 + 0x500717]
push 4
push 0x640700
lea eax, [ebp - 4]
push eax
call fcn.004fe880
add esp, 0xc
jmp case.default.0x500710
push 4
push 0x640705
lea edx, [ebp - 4]
push edx
call fcn.004fe880
add esp, 0xc
jmp case.default.0x500710
push 4
push 0x64070a
lea ecx, [ebp - 4]
push ecx
call fcn.004fe880
add esp, 0xc
jmp case.default.0x500710
push 4
push 0x64070f
lea eax, [ebp - 4]
push eax
call fcn.004fe880
add esp, 0xc
jmp case.default.0x500710
push 4
push 0x640714
lea edx, [ebp - 4]
push edx
call fcn.004fe880
add esp, 0xc
jmp case.default.0x500710
mov eax, 1
jmp 0x500d30
mov edx, dword [ebp + 0xc]
cmp byte [edx + 0x10], 0
je 0x5007be
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x5007ba
cmp dword [ebp + 0x20], 1
je 0x500821
test eax, eax
jne 0x500821
mov eax, esi
shl eax, 3
sub eax, esi
lea eax, [esi + eax*4]
mov edx, dword [ebx + 0x48]
mov dword [edi + eax*8 + 0x2c], edx
mov ecx, dword [ebx + 0x58]
mov dword [edi + eax*8 + 0x38], ecx
mov edx, dword [ebx + 0x4c]
mov dword [edi + eax*8 + 0x30], edx
mov ecx, dword [ebx + 0x5c]
mov dword [edi + eax*8 + 0x3c], ecx
mov edx, dword [ebx + 0x44]
mov dword [edi + eax*8 + 0x40], edx
mov ecx, dword [ebx + 0x54]
mov dword [edi + eax*8 + 0x34], ecx
mov edx, dword [ebx + 0x50]
mov dword [edi + eax*8 + 0x44], edx
mov ecx, dword [ebx + 0x60]
mov dword [edi + eax*8 + 0x48], ecx
mov edx, dword [ebx + 0x64]
mov dword [edi + eax*8 + 0x60], edx
mov ecx, dword [ebx + 0x6c]
mov dword [edi + eax*8 + 0x68], ecx
mov edx, dword [ebx + 0x68]
mov dword [edi + eax*8 + 0x64], edx
mov ecx, dword [ebx + 0x70]
mov dword [edi + eax*8 + 0x6c], ecx
jmp 0x500d2e
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x24]
jge 0x500d2e
mov eax, esi
shl eax, 3
sub eax, esi
mov dword [ebp - 8], 3
lea eax, [esi + eax*4]
lea esi, [ebp - 1]
lea ecx, [edi + eax*8 + 0x30]
mov al, byte [esi]
sub al, 0x43
je 0x500868
sub al, 9
je 0x5009cb
sub al, 4
je 0x500a5b
sub al, 2
je 0x500917
jmp 0x500d20
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x1c]
jle 0x500880
mov eax, dword [ebx + 0x4c]
mov dword [ecx], eax
mov edx, dword [ebx + 0x5c]
mov dword [ecx + 0xc], edx
jmp 0x500d20
cmp dword [ebp + 0x18], 0
jne 0x5008a6
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x84], eax
mov dword [ecx], eax
mov edx, dword [ebx + 0x84]
inc edx
mov dword [ecx + 0xc], edx
inc dword [ebx + 0x84]
jmp 0x500d20
cmp dword [ebp - 0xc], 1
jne 0x500900
mov eax, dword [ebx + 0x84]
cmp eax, dword [ebx + 0x5c]
jne 0x5008de
mov eax, dword [ebx + 0x4c]
mov dword [ebx + 0x84], eax
mov dword [ecx], eax
mov edx, dword [ebx + 0x84]
inc edx
mov dword [ecx + 0xc], edx
inc dword [ebx + 0x84]
mov dword [ebp - 0xc], 1
jmp 0x500d20
mov eax, dword [ebx + 0x84]
mov dword [ecx], eax
mov edx, dword [ebx + 0x84]
inc edx
mov dword [ecx + 0xc], edx
inc dword [ebx + 0x84]
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x500d20
mov edx, dword [ebx + 0x84]
dec edx
mov dword [ecx], edx
mov eax, dword [ebx + 0x84]
mov dword [ecx + 0xc], eax
jmp 0x500d20
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x1c]
jle 0x500930
mov eax, dword [ebx + 0x48]
mov dword [ecx - 4], eax
mov edx, dword [ebx + 0x58]
mov dword [ecx + 8], edx
jmp 0x500d20
cmp dword [ebp + 0x18], 0
jne 0x500957
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x80], eax
mov dword [ecx - 4], eax
mov edx, dword [ebx + 0x80]
inc edx
mov dword [ecx + 8], edx
inc dword [ebx + 0x80]
jmp 0x500d20
cmp dword [ebp - 0xc], 1
jne 0x5009b3
mov eax, dword [ebx + 0x80]
cmp eax, dword [ebx + 0x58]
jne 0x500990
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x80], eax
mov dword [ecx - 4], eax
mov edx, dword [ebx + 0x80]
inc edx
mov dword [ecx + 8], edx
inc dword [ebx + 0x80]
mov dword [ebp - 0xc], 1
jmp 0x500d20
mov eax, dword [ebx + 0x80]
mov dword [ecx - 4], eax
mov edx, dword [ebx + 0x80]
inc edx
mov dword [ecx + 8], edx
inc dword [ebx + 0x80]
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x500d20
mov edx, dword [ebx + 0x80]
dec edx
mov dword [ecx - 4], edx
mov eax, dword [ebx + 0x80]
mov dword [ecx + 8], eax
jmp 0x500d20
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x1c]
jle 0x5009e4
mov eax, dword [ebx + 0x44]
mov dword [ecx + 0x10], eax
mov edx, dword [ebx + 0x54]
mov dword [ecx + 4], edx
jmp 0x500d20
cmp dword [ebp + 0x18], 0
jne 0x500a02
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x7c], eax
mov dword [ecx + 0x10], eax
mov edx, dword [ebx + 0x7c]
inc edx
mov dword [ecx + 4], edx
inc dword [ebx + 0x7c]
jmp 0x500d20
cmp dword [ebp - 0xc], 1
jne 0x500a49
mov eax, dword [ebx + 0x7c]
cmp eax, dword [ebx + 0x54]
jne 0x500a2f
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x7c], eax
mov dword [ecx + 0x10], eax
mov edx, dword [ebx + 0x7c]
inc edx
mov dword [ecx + 4], edx
inc dword [ebx + 0x7c]
mov dword [ebp - 0xc], 1
jmp 0x500d20
mov eax, dword [ebx + 0x7c]
mov dword [ecx + 0x10], eax
mov edx, dword [ebx + 0x7c]
inc edx
mov dword [ecx + 4], edx
inc dword [ebx + 0x7c]
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x500d20
mov edx, dword [ebx + 0x7c]
dec edx
mov dword [ecx + 0x10], edx
mov eax, dword [ebx + 0x7c]
mov dword [ecx + 4], eax
jmp 0x500d20
mov edx, dword [ebx + 0x24]
sub edx, 2
jb 0x500a68
jmp 0x500b28
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x1c]
jle 0x500a81
mov edx, dword [ebx + 0x50]
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x60]
mov dword [ecx + 0x18], eax
jmp 0x500d20
cmp dword [ebp + 0x18], 0
jne 0x500aae
mov edx, dword [ebx + 0x50]
mov dword [ebx + 0x88], edx
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x14], eax
mov edx, dword [ebx + 0x88]
inc edx
mov dword [ecx + 0x18], edx
inc dword [ebx + 0x88]
jmp 0x500d20
cmp dword [ebp - 0xc], 1
jne 0x500b10
mov eax, dword [ebx + 0x88]
cmp eax, dword [ebx + 0x60]
jne 0x500aed
mov edx, dword [ebx + 0x50]
mov dword [ebx + 0x88], edx
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x14], eax
mov edx, dword [ebx + 0x88]
inc edx
mov dword [ecx + 0x18], edx
inc dword [ebx + 0x88]
mov dword [ebp - 0xc], 1
jmp 0x500d20
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x14], eax
mov edx, dword [ebx + 0x88]
inc edx
mov dword [ecx + 0x18], edx
inc dword [ebx + 0x88]
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x500d20
mov edx, dword [ebx + 0x88]
dec edx
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x18], eax
jmp 0x500d20
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x1c]
jle 0x500b4d
mov eax, dword [ebx + 0x64]
mov dword [ecx + 0x30], eax
mov edx, dword [ebx + 0x6c]
mov dword [ecx + 0x38], edx
mov eax, dword [ebx + 0x68]
mov dword [ecx + 0x34], eax
mov edx, dword [ebx + 0x70]
mov dword [ecx + 0x3c], edx
jmp 0x500d20
cmp dword [ebp + 0x18], 0
jne 0x500bbe
mov eax, dword [ebx + 0x64]
mov dword [ebx + 0x8c], eax
mov edx, dword [ebx + 0x6c]
mov dword [ebx + 0x90], edx
mov eax, dword [ebx + 0x8c]
mov dword [ecx + 0x30], eax
mov eax, dword [ebx + 0x8c]
cdq
idiv dword [ebx + 0x74]
mov eax, dword [ebx + 0x8c]
add eax, dword [ebx + 0x74]
sub eax, edx
mov dword [ecx + 0x34], eax
mov edx, dword [ebx + 0x90]
mov dword [ecx + 0x38], edx
mov eax, dword [ebx + 0x90]
cdq
idiv dword [ebx + 0x78]
mov eax, dword [ebx + 0x90]
add eax, dword [ebx + 0x78]
sub eax, edx
mov dword [ecx + 0x3c], eax
mov edx, dword [ecx + 0x34]
mov dword [ebx + 0x8c], edx
mov eax, dword [ecx + 0x3c]
mov dword [ebx + 0x90], eax
jmp 0x500d20
cmp dword [ebp - 0xc], 1
jne 0x500cdc
mov edx, dword [ebx + 0x8c]
cmp edx, dword [ebx + 0x68]
jl 0x500c92
mov eax, dword [ebx + 0x90]
cmp eax, dword [ebx + 0x70]
jl 0x500c23
mov edx, dword [ebx + 0x6c]
mov dword [ebx + 0x90], edx
mov eax, dword [ebx + 0x90]
mov dword [ecx + 0x38], eax
mov eax, dword [ebx + 0x90]
cdq
idiv dword [ebx + 0x78]
mov eax, dword [ebx + 0x90]
add eax, dword [ebx + 0x78]
sub eax, edx
mov dword [ecx + 0x3c], eax
mov eax, 1
mov edx, dword [ecx + 0x3c]
mov dword [ebx + 0x90], edx
mov dword [ebp - 0xc], 1
jmp 0x500c53
mov edx, dword [ebx + 0x90]
mov dword [ecx + 0x38], edx
mov edi, dword [ebx + 0x90]
mov eax, edi
cdq
idiv dword [ebx + 0x78]
add edi, dword [ebx + 0x78]
sub edi, edx
xor edx, edx
mov dword [ecx + 0x3c], edi
mov eax, dword [ecx + 0x3c]
mov dword [ebx + 0x90], eax
mov eax, 1
mov dword [ebp - 0xc], edx
dec eax
jne 0x500d20
mov edx, dword [ebx + 0x64]
mov dword [ebx + 0x8c], edx
mov eax, dword [ebx + 0x8c]
mov dword [ecx + 0x30], eax
mov eax, dword [ebx + 0x8c]
cdq
idiv dword [ebx + 0x74]
mov eax, dword [ebx + 0x8c]
add eax, dword [ebx + 0x74]
sub eax, edx
mov dword [ecx + 0x34], eax
mov edx, dword [ecx + 0x34]
mov dword [ebx + 0x8c], edx
jmp 0x500d20
mov eax, dword [ebx + 0x8c]
mov dword [ecx + 0x30], eax
mov edi, dword [ebx + 0x8c]
mov eax, edi
cdq
idiv dword [ebx + 0x74]
add edi, dword [ebx + 0x74]
sub edi, edx
mov dword [ecx + 0x34], edi
mov eax, dword [ecx + 0x34]
mov dword [ebx + 0x8c], eax
mov edi, dword [ebx + 0x90]
mov eax, edi
cdq
idiv dword [ebx + 0x78]
sub edi, dword [ebx + 0x78]
sub edi, edx
xor edx, edx
mov dword [ecx + 0x38], edi
mov eax, dword [ebx + 0x90]
mov dword [ecx + 0x3c], eax
mov dword [ebp - 0xc], edx
jmp 0x500d20
mov eax, dword [ebx + 0x8c]
cdq
idiv dword [ebx + 0x74]
mov eax, dword [ebx + 0x8c]
sub eax, dword [ebx + 0x74]
sub eax, edx
mov dword [ecx + 0x30], eax
mov edx, dword [ebx + 0x8c]
mov dword [ecx + 0x34], edx
mov eax, dword [ebx + 0x90]
cdq
idiv dword [ebx + 0x78]
mov eax, dword [ebx + 0x90]
sub eax, dword [ebx + 0x78]
sub eax, edx
mov dword [ecx + 0x38], eax
mov edx, dword [ebx + 0x90]
mov dword [ecx + 0x3c], edx
jmp 0x500d20
dec dword [ebp - 8]
dec esi
cmp dword [ebp - 8], 0
jge 0x500845
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret