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

Disassembly:
sub esp, 0x48
mov ecx, dword [esp + 0x50]
mov eax, dword [ecx]
mov edx, dword [ecx + 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 0x1f44]
mov dword [esp + 0x20], edx
mov edx, dword [eax + 0x1f48]
mov dword [esp + 0x28], edx
mov edx, dword [eax + 0x1f4c]
mov eax, dword [eax + 0x1f50]
push ebx
mov dword [esp + 0x28], edx
movsx edx, word [ecx + 0x40]
push ebp
push esi
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 4]
add edx, edx
push edi
mov edi, eax
sub edi, edx
movsx edx, word [ecx + 0x42]
add edx, edx
sub eax, edx
xor edx, edx
xor ebp, ebp
xor ebx, ebx
cmp dword [esp + 0x68], edx
mov dword [esp + 0x14], eax
mov esi, 0x10000000
mov dword [esp + 0x2c], edx
mov dword [esp + 0x24], edx
jle 0x51192a
lea ebx, [ebx]
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x24]
movsx eax, word [ecx + eax*4]
add eax, 2
sar eax, 2
mov word [ecx + edx*4], ax
movsx eax, ax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
movsx eax, word [ecx + eax*4 + 2]
add eax, 2
sar eax, 2
mov word [ecx + edx*4 + 2], ax
movsx edx, ax
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x18]
movsx edx, word [ecx + eax*4]
cmp dword [esp + 0x28], edx
jne 0x511889
movsx edx, word [ecx + eax*4 + 2]
cmp dword [esp + 0x10], edx
je 0x511890
add dword [esp + 0x18], 1
jmp 0x511870
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x18], edx
jne 0x511905
mov ecx, dword [esp + 0x60]
mov eax, dword [ecx + 0x38]
push eax
imul eax, dword [esp + 0x14]
add eax, dword [esp + 0x2c]
add edx, 1
add eax, dword [esp + 0x20]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x64]
push 0x10
push eax
mov eax, dword [ecx + edx*4 + 0x4b78]
call eax
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
movsx ecx, word [ecx + edx*8]
add eax, ecx
mov ecx, dword [esp + 0x38]
movsx edx, word [edi + ecx*8]
add eax, edx
add esp, 0x10
cmp eax, esi
jge 0x5118f5
mov ebx, dword [esp + 0x10]
mov esi, eax
mov ebp, ecx
cmp esi, 0x200
jl case.default.0x511a8a
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x24]
add eax, 1
cmp eax, dword [esp + 0x68]
mov dword [esp + 0x24], eax
jl 0x511830
cmp esi, 0x300
jl case.default.0x511a8a
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 0x38]
mov eax, ecx
imul eax, ebx
add eax, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
add eax, ebp
push ecx
lea edx, [eax + 1]
push edx
lea edx, [eax - 1]
push edx
lea edx, [ecx + eax]
sub eax, ecx
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x78]
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [edx + eax*4 + 0x4c2c]
mov dword [esp + 0x84], 0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], ebx
call ecx
mov edx, dword [esp + 0x30]
lea ecx, [ebp*8]
movsx ecx, word [ecx + edi]
add ecx, dword [esp + 0x5c]
lea eax, [ebx*8]
movsx edx, word [eax + edx - 8]
add ecx, edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x5c], ecx
movsx ecx, word [eax + edx + 8]
movsx edx, word [edi + ebp*8]
add edx, dword [esp + 0x60]
add esp, 0x1c
add edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], edx
movsx eax, word [eax + ecx]
add eax, dword [esp + 0x48]
movsx edx, word [edi + ebp*8 - 8]
add eax, edx
mov dword [esp + 0x48], eax
movsx eax, word [ecx + ebx*8]
add eax, dword [esp + 0x4c]
movsx edx, word [edi + ebp*8 + 8]
lea ecx, [eax + edx]
mov eax, dword [esp + 0x40]
cmp eax, esi
mov dword [esp + 0x4c], ecx
jge 0x5119f8
mov esi, eax
sub ebx, 1
mov dword [esp + 0x68], 1
mov eax, dword [esp + 0x44]
cmp eax, esi
jge 0x511a13
mov esi, eax
mov eax, dword [esp + 0x10]
lea ebx, [eax + 1]
mov dword [esp + 0x68], 2
jmp 0x511a17
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x48]
cmp edx, esi
jge 0x511a2e
mov esi, edx
sub ebp, 1
mov ebx, eax
mov dword [esp + 0x68], 3
cmp ecx, esi
jge 0x511a47
mov ebp, dword [esp + 0x18]
mov esi, ecx
add ebp, 1
mov ebx, eax
mov dword [esp + 0x68], 4
jmp 0x511a52
cmp dword [esp + 0x68], 0
je case.default.0x511a8a
cmp ebp, dword [esp + 0x30]
jl case.default.0x511a8a
cmp ebp, dword [esp + 0x34]
jg case.default.0x511a8a
cmp ebx, dword [esp + 0x38]
jl case.default.0x511a8a
cmp ebx, dword [esp + 0x3c]
jg case.default.0x511a8a
mov eax, dword [esp + 0x68]
add eax, 0xffffffff
cmp eax, 3
ja case.default.0x511a8a
jmp dword [eax*4 + 0x511eb0]
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 0x38]
mov eax, ecx
imul eax, ebx
add eax, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
add eax, ebp
push ecx
lea edx, [eax + 1]
push edx
lea edx, [eax - 1]
sub eax, ecx
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [edx + eax*4 + 0x4c10]
mov dword [esp + 0x80], 0
call ecx
movsx eax, word [edi + ebp*8]
mov ecx, dword [esp + 0x2c]
movsx edx, word [ecx + ebx*8 - 8]
add eax, dword [esp + 0x58]
add esp, 0x18
add eax, edx
mov dword [esp + 0x40], eax
movsx ecx, word [ecx + ebx*8]
add ecx, dword [esp + 0x44]
movsx edx, word [edi + ebp*8 - 8]
add ecx, edx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x14]
movsx ecx, word [ecx + ebx*8]
add ecx, dword [esp + 0x48]
movsx edx, word [edi + ebp*8 + 8]
add ecx, edx
cmp eax, esi
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x10]
jge 0x511b39
mov esi, eax
mov eax, dword [esp + 0x18]
mov ebp, eax
lea ebx, [ecx - 1]
mov dword [esp + 0x68], 1
jmp 0x511b3d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
cmp edx, esi
jge 0x511b54
mov esi, edx
lea ebp, [eax - 1]
mov ebx, ecx
mov dword [esp + 0x68], 3
mov edx, dword [esp + 0x48]
cmp edx, esi
jge 0x511e1d
mov esi, edx
lea ebp, [eax + 1]
mov ebx, ecx
mov dword [esp + 0x68], 4
jmp 0x511a52
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0x38]
mov eax, ecx
imul eax, ebx
add eax, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
add eax, ebp
push ecx
lea edx, [eax + 1]
push edx
lea edx, [eax - 1]
add ecx, eax
mov eax, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x6c]
push ecx
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [edx + eax*4 + 0x4c10]
mov dword [esp + 0x80], 0
call ecx
movsx eax, word [edi + ebp*8]
mov ecx, dword [esp + 0x2c]
movsx edx, word [ecx + ebx*8 + 8]
add eax, dword [esp + 0x58]
add esp, 0x18
add eax, edx
mov dword [esp + 0x40], eax
movsx ecx, word [ecx + ebx*8]
add ecx, dword [esp + 0x44]
movsx edx, word [edi + ebp*8 - 8]
add ecx, edx
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x14]
movsx ecx, word [ecx + ebx*8]
movsx edx, word [edi + ebp*8 + 8]
add ecx, dword [esp + 0x48]
add ecx, edx
cmp eax, esi
mov dword [esp + 0x48], ecx
jge 0x511c18
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov esi, eax
add ebx, 1
mov dword [esp + 0x68], 2
mov eax, dword [esp + 0x44]
cmp eax, esi
jge 0x511c35
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov esi, eax
add ebp, 0xffffffff
mov dword [esp + 0x68], 3
cmp ecx, esi
jge 0x511e1d
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov esi, ecx
add ebp, 1
mov dword [esp + 0x68], 4
jmp 0x511a52
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0x38]
mov eax, ecx
imul eax, ebx
add eax, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
add eax, ebp
lea edx, [ecx + eax]
push ecx
push edx
mov edx, eax
sub edx, ecx
push edx
mov edx, dword [esp + 0x6c]
add eax, 0xffffffff
push eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [edx + eax*4 + 0x4c10]
mov dword [esp + 0x80], 0
call ecx
mov ecx, dword [esp + 0x2c]
movsx eax, word [ecx + ebx*8]
movsx edx, word [edi + ebp*8 - 8]
add eax, dword [esp + 0x58]
add esp, 0x18
add eax, edx
mov dword [esp + 0x40], eax
movsx ecx, word [ecx + ebx*8 - 8]
movsx edx, word [edi + ebp*8]
add edx, dword [esp + 0x44]
add edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], edx
movsx edx, word [ecx + ebx*8 + 8]
movsx ecx, word [edi + ebp*8]
add ecx, dword [esp + 0x48]
add ecx, edx
cmp eax, esi
mov dword [esp + 0x48], ecx
jge 0x511cfd
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov esi, eax
add ebp, 0xffffffff
mov dword [esp + 0x68], 3
mov eax, dword [esp + 0x44]
cmp eax, esi
jge 0x511d1a
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov esi, eax
add ebx, 0xffffffff
mov dword [esp + 0x68], 1
cmp ecx, esi
jge 0x511e1d
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov esi, ecx
add ebx, 1
mov dword [esp + 0x68], 2
jmp 0x511a52
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0x38]
mov eax, ecx
imul eax, ebx
add eax, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
add eax, ebp
lea edx, [ecx + eax]
push ecx
push edx
mov edx, eax
sub edx, ecx
push edx
mov edx, dword [esp + 0x6c]
add eax, 1
push eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [edx + eax*4 + 0x4c10]
mov dword [esp + 0x80], 0
call ecx
mov ecx, dword [esp + 0x2c]
movsx eax, word [ecx + ebx*8]
movsx edx, word [edi + ebp*8 + 8]
add eax, dword [esp + 0x58]
add esp, 0x18
add eax, edx
mov dword [esp + 0x40], eax
movsx ecx, word [ecx + ebx*8 - 8]
movsx edx, word [edi + ebp*8]
add edx, dword [esp + 0x44]
add edx, ecx
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x44], edx
movsx edx, word [ecx + ebx*8 + 8]
movsx ecx, word [edi + ebp*8]
add ecx, dword [esp + 0x48]
add ecx, edx
cmp eax, esi
mov dword [esp + 0x48], ecx
jge 0x511de2
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
mov esi, eax
add ebp, 1
mov dword [esp + 0x68], 4
mov eax, dword [esp + 0x44]
cmp eax, esi
jge 0x511dff
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov esi, eax
add ebx, 0xffffffff
mov dword [esp + 0x68], 1
cmp ecx, esi
jge 0x511e1d
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
mov esi, ecx
add ebx, 1
mov dword [esp + 0x68], 2
jmp 0x511a52
cmp dword [esp + 0x68], 0
jne 0x511a52
mov eax, dword [esp + 0x60]
add ebp, ebp
add ebx, ebx
add ebp, ebp
add ebx, ebx
mov dword [eax + 0x48], esi
mov esi, dword [esp + 0x14]
movsx ecx, bx
movsx edx, bp
mov word [eax + 0x4c], bp
mov word [eax + 0x4e], bx
movsx edx, word [edi + edx*2]
movsx esi, word [esi + ecx*2]
mov edi, dword [esp + 0x5c]
add edx, esi
mov dword [eax + 0x44], edx
cmp dword [edi + 0x1f08], 2
jl 0x511e93
mov ecx, dword [edi + 0x1f08]
mov edx, dword [esp + 0x6c]
push 0
shl ecx, 4
push edx
mov edx, dword [ecx + 0x589804]
mov ecx, dword [ecx + 0x589800]
push edx
push ecx
mov esi, eax
call fcn.0050bdb0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
cmp ecx, dword [edi + 0x1f40]
jle 0x511ea6
mov dx, word [edi + 0x1f40]
mov word [eax + 0x4e], dx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret