Function at 0x506788
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.0x5067e4
jmp dword [ecx*4 + 0x5067eb]
push 4
push 0x734bac
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll_strncpy
add esp, 0xc
jmp case.default.0x5067e4
push 4
push 0x734bb1
lea edx, [ebp - 4]
push edx
call sub.msvcrt.dll_strncpy
add esp, 0xc
jmp case.default.0x5067e4
push 4
push 0x734bb6
lea ecx, [ebp - 4]
push ecx
call sub.msvcrt.dll_strncpy
add esp, 0xc
jmp case.default.0x5067e4
push 4
push 0x734bbb
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll_strncpy
add esp, 0xc
jmp case.default.0x5067e4
push 4
push 0x734bc0
lea edx, [ebp - 4]
push edx
call sub.msvcrt.dll_strncpy
add esp, 0xc
jmp case.default.0x5067e4
mov eax, 1
jmp 0x506e04
mov edx, dword [ebp + 0xc]
cmp byte [edx + 0x10], 0
je 0x506892
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x50688e
cmp dword [ebp + 0x20], 1
je 0x5068f5
test eax, eax
jne 0x5068f5
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 0x506e02
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x24]
jge 0x506e02
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 0x50693c
sub al, 9
je 0x506a9f
sub al, 4
je 0x506b2f
sub al, 2
je 0x5069eb
jmp 0x506df4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x1c]
jle 0x506954
mov eax, dword [ebx + 0x4c]
mov dword [ecx], eax
mov edx, dword [ebx + 0x5c]
mov dword [ecx + 0xc], edx
jmp 0x506df4
cmp dword [ebp + 0x18], 0
jne 0x50697a
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 0x506df4
cmp dword [ebp - 0xc], 1
jne 0x5069d4
mov eax, dword [ebx + 0x84]
cmp eax, dword [ebx + 0x5c]
jne 0x5069b2
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 0x506df4
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 0x506df4
mov edx, dword [ebx + 0x84]
dec edx
mov dword [ecx], edx
mov eax, dword [ebx + 0x84]
mov dword [ecx + 0xc], eax
jmp 0x506df4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x1c]
jle 0x506a04
mov eax, dword [ebx + 0x48]
mov dword [ecx - 4], eax
mov edx, dword [ebx + 0x58]
mov dword [ecx + 8], edx
jmp 0x506df4
cmp dword [ebp + 0x18], 0
jne 0x506a2b
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 0x506df4
cmp dword [ebp - 0xc], 1
jne 0x506a87
mov eax, dword [ebx + 0x80]
cmp eax, dword [ebx + 0x58]
jne 0x506a64
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 0x506df4
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 0x506df4
mov edx, dword [ebx + 0x80]
dec edx
mov dword [ecx - 4], edx
mov eax, dword [ebx + 0x80]
mov dword [ecx + 8], eax
jmp 0x506df4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x1c]
jle 0x506ab8
mov eax, dword [ebx + 0x44]
mov dword [ecx + 0x10], eax
mov edx, dword [ebx + 0x54]
mov dword [ecx + 4], edx
jmp 0x506df4
cmp dword [ebp + 0x18], 0
jne 0x506ad6
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 0x506df4
cmp dword [ebp - 0xc], 1
jne 0x506b1d
mov eax, dword [ebx + 0x7c]
cmp eax, dword [ebx + 0x54]
jne 0x506b03
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 0x506df4
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 0x506df4
mov edx, dword [ebx + 0x7c]
dec edx
mov dword [ecx + 0x10], edx
mov eax, dword [ebx + 0x7c]
mov dword [ecx + 4], eax
jmp 0x506df4
mov edx, dword [ebx + 0x24]
sub edx, 2
jb 0x506b3c
jmp 0x506bfc
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x1c]
jle 0x506b55
mov edx, dword [ebx + 0x50]
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x60]
mov dword [ecx + 0x18], eax
jmp 0x506df4
cmp dword [ebp + 0x18], 0
jne 0x506b82
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 0x506df4
cmp dword [ebp - 0xc], 1
jne 0x506be4
mov eax, dword [ebx + 0x88]
cmp eax, dword [ebx + 0x60]
jne 0x506bc1
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 0x506df4
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 0x506df4
mov edx, dword [ebx + 0x88]
dec edx
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x18], eax
jmp 0x506df4
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x1c]
jle 0x506c21
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 0x506df4
cmp dword [ebp + 0x18], 0
jne 0x506c92
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 0x506df4
cmp dword [ebp - 0xc], 1
jne 0x506db0
mov edx, dword [ebx + 0x8c]
cmp edx, dword [ebx + 0x68]
jl 0x506d66
mov eax, dword [ebx + 0x90]
cmp eax, dword [ebx + 0x70]
jl 0x506cf7
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 0x506d27
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 0x506df4
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 0x506df4
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 0x506df4
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 0x506df4
dec dword [ebp - 8]
dec esi
cmp dword [ebp - 8], 0
jge 0x506919
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret