Function at 0x50bf8c
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.0x50bfe8
jmp dword [ecx*4 + 0x50bfef]
push 4
push 0x5b8134
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll_strncpy
add esp, 0xc
jmp case.default.0x50bfe8
push 4
push 0x5b8139
lea edx, [ebp - 4]
push edx
call sub.msvcrt.dll_strncpy
add esp, 0xc
jmp case.default.0x50bfe8
push 4
push 0x5b813e
lea ecx, [ebp - 4]
push ecx
call sub.msvcrt.dll_strncpy
add esp, 0xc
jmp case.default.0x50bfe8
push 4
push 0x5b8143
lea eax, [ebp - 4]
push eax
call sub.msvcrt.dll_strncpy
add esp, 0xc
jmp case.default.0x50bfe8
push 4
push 0x5b8148
lea edx, [ebp - 4]
push edx
call sub.msvcrt.dll_strncpy
add esp, 0xc
jmp case.default.0x50bfe8
mov eax, 1
jmp 0x50c608
mov edx, dword [ebp + 0xc]
cmp byte [edx + 0x10], 0
je 0x50c096
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
test eax, eax
jne 0x50c092
cmp dword [ebp + 0x20], 1
je 0x50c0f9
test eax, eax
jne 0x50c0f9
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 0x50c606
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0x24]
jge 0x50c606
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 0x50c140
sub al, 9
je 0x50c2a3
sub al, 4
je 0x50c333
sub al, 2
je 0x50c1ef
jmp 0x50c5f8
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x1c]
jle 0x50c158
mov eax, dword [ebx + 0x4c]
mov dword [ecx], eax
mov edx, dword [ebx + 0x5c]
mov dword [ecx + 0xc], edx
jmp 0x50c5f8
cmp dword [ebp + 0x18], 0
jne 0x50c17e
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 0x50c5f8
cmp dword [ebp - 0xc], 1
jne 0x50c1d8
mov eax, dword [ebx + 0x84]
cmp eax, dword [ebx + 0x5c]
jne 0x50c1b6
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 0x50c5f8
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 0x50c5f8
mov edx, dword [ebx + 0x84]
dec edx
mov dword [ecx], edx
mov eax, dword [ebx + 0x84]
mov dword [ecx + 0xc], eax
jmp 0x50c5f8
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x1c]
jle 0x50c208
mov eax, dword [ebx + 0x48]
mov dword [ecx - 4], eax
mov edx, dword [ebx + 0x58]
mov dword [ecx + 8], edx
jmp 0x50c5f8
cmp dword [ebp + 0x18], 0
jne 0x50c22f
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 0x50c5f8
cmp dword [ebp - 0xc], 1
jne 0x50c28b
mov eax, dword [ebx + 0x80]
cmp eax, dword [ebx + 0x58]
jne 0x50c268
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 0x50c5f8
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 0x50c5f8
mov edx, dword [ebx + 0x80]
dec edx
mov dword [ecx - 4], edx
mov eax, dword [ebx + 0x80]
mov dword [ecx + 8], eax
jmp 0x50c5f8
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x1c]
jle 0x50c2bc
mov eax, dword [ebx + 0x44]
mov dword [ecx + 0x10], eax
mov edx, dword [ebx + 0x54]
mov dword [ecx + 4], edx
jmp 0x50c5f8
cmp dword [ebp + 0x18], 0
jne 0x50c2da
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 0x50c5f8
cmp dword [ebp - 0xc], 1
jne 0x50c321
mov eax, dword [ebx + 0x7c]
cmp eax, dword [ebx + 0x54]
jne 0x50c307
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 0x50c5f8
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 0x50c5f8
mov edx, dword [ebx + 0x7c]
dec edx
mov dword [ecx + 0x10], edx
mov eax, dword [ebx + 0x7c]
mov dword [ecx + 4], eax
jmp 0x50c5f8
mov edx, dword [ebx + 0x24]
sub edx, 2
jb 0x50c340
jmp 0x50c400
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x1c]
jle 0x50c359
mov edx, dword [ebx + 0x50]
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x60]
mov dword [ecx + 0x18], eax
jmp 0x50c5f8
cmp dword [ebp + 0x18], 0
jne 0x50c386
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 0x50c5f8
cmp dword [ebp - 0xc], 1
jne 0x50c3e8
mov eax, dword [ebx + 0x88]
cmp eax, dword [ebx + 0x60]
jne 0x50c3c5
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 0x50c5f8
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 0x50c5f8
mov edx, dword [ebx + 0x88]
dec edx
mov dword [ecx + 0x14], edx
mov eax, dword [ebx + 0x88]
mov dword [ecx + 0x18], eax
jmp 0x50c5f8
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0x1c]
jle 0x50c425
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 0x50c5f8
cmp dword [ebp + 0x18], 0
jne 0x50c496
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 0x50c5f8
cmp dword [ebp - 0xc], 1
jne 0x50c5b4
mov edx, dword [ebx + 0x8c]
cmp edx, dword [ebx + 0x68]
jl 0x50c56a
mov eax, dword [ebx + 0x90]
cmp eax, dword [ebx + 0x70]
jl 0x50c4fb
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 0x50c52b
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 0x50c5f8
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 0x50c5f8
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 0x50c5f8
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 0x50c5f8
dec dword [ebp - 8]
dec esi
cmp dword [ebp - 8], 0
jge 0x50c11d
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret