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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xb4
mov eax, dword [ebp + 0x34]
test eax, eax
push ebx
push esi
push edi
jle 0x513ec8
mov ecx, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
lea edx, [ecx + ecx]
mov ecx, dword [ebp + 0x30]
mov dword [esp + 0xa4], edx
lea edx, [ecx*4]
mov ecx, dword [ebp + 0x2c]
mov dword [esp + 0xbc], edx
mov edx, dword [ebp + 0x28]
lea ecx, [edx + ecx*4]
add ebx, ebx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xb8], eax
lea ebx, [ebx]
mov edx, dword [esp + 0xa0]
mov eax, dword [edx]
mov ecx, dword [eax*4 + 0x54b4c8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
xor eax, eax
lea ecx, [ecx]
mov dx, word [ecx - 2]
mov word [esp + eax + 0x40], dx
mov dx, word [ecx]
mov word [esp + eax + 0x80], dx
mov dx, word [ecx + 2]
mov word [esp + eax + 0x60], dx
mov dx, word [ecx + 4]
mov word [esp + eax + 0x20], dx
mov edx, dword [esp + 0xa4]
add eax, 2
add ecx, edx
cmp eax, 0x20
jl 0x5136f0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x20]
mov dword [ebp + 8], eax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edx
call fcn.005131e0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x70]
push eax
push ecx
call fcn.005131e0
add esp, 0x28
xor eax, eax
jmp 0x513780
mov ecx, dword [ebp + 8]
mov dx, word [esp + eax + 0x40]
mov word [ecx - 2], dx
mov dx, word [esp + eax + 0x80]
mov word [ecx], dx
mov dx, word [esp + eax + 0x60]
mov word [ecx + 2], dx
mov dx, word [esp + eax + 0x20]
mov word [ecx + 4], dx
add ecx, dword [esp + 0xa4]
add eax, 2
cmp eax, 0x20
mov dword [ebp + 8], ecx
jl 0x513780
mov eax, dword [esp + 0xa0]
mov ecx, dword [eax + 4]
mov edx, dword [ecx*4 + 0x54b4c8]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
xor eax, eax
lea esp, [esp]
mov dx, word [ecx - 2]
mov word [esp + eax + 0x40], dx
mov dx, word [ecx]
mov word [esp + eax + 0x80], dx
mov dx, word [ecx + 2]
mov word [esp + eax + 0x60], dx
mov dx, word [ecx + 4]
mov word [esp + eax + 0x20], dx
mov edx, dword [esp + 0xa4]
add eax, 2
add ecx, edx
cmp eax, 0x20
jl 0x5137e0
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x64]
push edx
mov edx, dword [esp + 0x20]
mov dword [ebp + 0xc], eax
lea eax, [esp + 0x88]
push eax
lea ecx, [esp + 0x4c]
push ecx
push edx
call fcn.005131e0
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x88]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x70]
push eax
push ecx
call fcn.005131e0
add esp, 0x28
xor eax, eax
jmp 0x513870
mov ecx, dword [ebp + 0xc]
mov dx, word [esp + eax + 0x40]
mov word [ecx - 2], dx
mov dx, word [esp + eax + 0x80]
mov word [ecx], dx
mov dx, word [esp + eax + 0x60]
mov word [ecx + 2], dx
mov dx, word [esp + eax + 0x20]
mov word [ecx + 4], dx
add ecx, dword [esp + 0xa4]
add eax, 2
cmp eax, 0x20
mov dword [ebp + 0xc], ecx
jl 0x513870
mov dx, word [esi + 2]
mov cx, word [esi]
lea eax, [esi - 2]
mov dword [esp + 0xac], eax
mov ax, word [eax]
mov word [esp + 0x40], ax
lea eax, [esi + 2]
mov dword [esp + 0xa8], eax
lea eax, [esi + 4]
mov word [esp + 0x80], cx
mov cx, word [esi + ebx - 2]
mov dword [esp + 0xb4], eax
mov ax, word [eax]
mov dword [esp + 0x1c], esi
add esi, ebx
mov word [esp + 0x60], dx
mov dx, word [esi]
mov word [esp + 0x20], ax
mov ax, word [esi + 2]
mov word [esp + 0x42], cx
mov cx, word [esi + 4]
mov word [esp + 0x82], dx
mov dx, word [esi + ebx - 2]
mov dword [esp + 0xb0], esi
add esi, ebx
mov word [esp + 0x62], ax
mov ax, word [esi]
mov word [esp + 0x22], cx
mov cx, word [esi + 2]
mov word [esp + 0x44], dx
mov dx, word [esi + 4]
add esi, ebx
mov word [esp + 0x84], ax
mov ax, word [esi - 2]
mov word [esp + 0x64], cx
mov cx, word [esi]
mov word [esp + 0x24], dx
mov dx, word [esi + 2]
mov word [esp + 0x46], ax
mov ax, word [esi + 4]
add esi, ebx
mov word [esp + 0x86], cx
mov cx, word [esi - 2]
mov word [esp + 0x66], dx
mov dx, word [esi]
mov word [esp + 0x26], ax
mov ax, word [esi + 2]
mov word [esp + 0x48], cx
mov cx, word [esi + 4]
add esi, ebx
mov word [esp + 0x88], dx
mov dx, word [esi - 2]
mov word [esp + 0x68], ax
mov ax, word [esi]
mov word [esp + 0x28], cx
mov cx, word [esi + 2]
mov word [esp + 0x4a], dx
mov dx, word [esi + 4]
add esi, ebx
mov word [esp + 0x8a], ax
mov ax, word [esi - 2]
mov word [esp + 0x6a], cx
mov cx, word [esi]
mov word [esp + 0x2a], dx
mov dx, word [esi + 2]
mov word [esp + 0x4c], ax
mov ax, word [esi + 4]
add esi, ebx
mov word [esp + 0x8c], cx
mov cx, word [esi - 2]
mov word [esp + 0x6c], dx
mov dx, word [esi]
mov word [esp + 0x2c], ax
mov ax, word [esi + 2]
mov word [esp + 0x4e], cx
mov cx, word [esi + 4]
mov word [esp + 0x8e], dx
lea edx, [esp + 0x20]
mov word [esp + 0x6e], ax
mov word [esp + 0x2e], cx
push edx
lea eax, [esp + 0x64]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
call fcn.005131e0
mov edx, dword [esp + 0xc0]
mov cx, word [esp + 0x54]
mov ax, word [esp + 0x94]
mov esi, dword [esp + 0xc4]
mov word [edx], cx
mov ecx, dword [esp + 0x30]
mov dx, word [esp + 0x74]
mov word [ecx], ax
mov eax, dword [esp + 0xbc]
mov cx, word [esp + 0x34]
mov word [eax], dx
mov edx, dword [esp + 0xc8]
mov ax, word [esp + 0x56]
mov word [edx], cx
mov cx, word [esp + 0x96]
mov dx, word [esp + 0x76]
mov word [esi - 2], ax
mov ax, word [esp + 0x36]
mov word [esi], cx
mov cx, word [esp + 0x58]
mov word [esi + 2], dx
mov dx, word [esp + 0x98]
mov word [esi + 4], ax
mov ax, word [esp + 0x78]
mov word [esi + ebx - 2], cx
mov cx, word [esp + 0x38]
mov word [esi + ebx], dx
mov dx, word [esp + 0x5a]
mov word [esi + ebx + 2], ax
mov ax, word [esp + 0x9a]
mov word [esi + ebx + 4], cx
mov cx, word [esp + 0x7a]
add esi, ebx
mov word [esi + ebx - 2], dx
mov dx, word [esp + 0x3a]
add esi, ebx
mov word [esi], ax
mov ax, word [esp + 0x5c]
mov word [esi + 2], cx
mov cx, word [esp + 0x9c]
mov word [esi + 4], dx
mov dx, word [esp + 0x7c]
mov word [esi + ebx - 2], ax
mov ax, word [esp + 0x3c]
add esi, ebx
mov word [esi], cx
mov cx, word [esp + 0x5e]
mov word [esi + 2], dx
mov dx, word [esp + 0x9e]
mov word [esi + 4], ax
mov ax, word [esp + 0x7e]
add esi, ebx
mov word [esi - 2], cx
mov cx, word [esp + 0x3e]
mov word [esi], dx
mov dx, word [esp + 0x60]
mov word [esi + 2], ax
mov ax, word [esp + 0xa0]
mov word [esi + 4], cx
mov cx, word [esp + 0x80]
add esi, ebx
mov word [esi - 2], dx
mov dx, word [esp + 0x40]
mov word [esi], ax
mov ax, word [esp + 0x62]
mov word [esi + 2], cx
mov cx, word [esp + 0xa2]
mov word [esi + 4], dx
mov dx, word [esp + 0x82]
add esi, ebx
mov word [esi - 2], ax
mov word [esi], cx
mov ax, word [esp + 0x42]
mov word [esi + 4], ax
mov word [esi + 2], dx
mov cx, word [edi - 2]
mov dx, word [edi]
lea eax, [edi - 2]
mov dword [esp + 0xc4], eax
lea eax, [edi + 2]
mov dword [esp + 0xc8], eax
mov ax, word [eax]
mov word [esp + 0x74], ax
lea eax, [edi + 4]
mov word [esp + 0x54], cx
mov cx, word [eax]
mov dword [esp + 0x30], edi
add edi, ebx
mov word [esp + 0x94], dx
mov dx, word [edi - 2]
mov dword [esp + 0xbc], eax
mov ax, word [edi]
mov word [esp + 0x34], cx
mov cx, word [edi + 2]
mov word [esp + 0x56], dx
mov dx, word [edi + 4]
mov dword [esp + 0xc0], edi
add edi, ebx
mov word [esp + 0x96], ax
mov ax, word [edi - 2]
mov word [esp + 0x76], cx
mov cx, word [edi]
mov word [esp + 0x36], dx
mov dx, word [edi + 2]
mov word [esp + 0x58], ax
mov ax, word [edi + 4]
add edi, ebx
mov word [esp + 0x98], cx
mov cx, word [edi - 2]
mov word [esp + 0x78], dx
mov dx, word [edi]
mov word [esp + 0x38], ax
mov ax, word [edi + 2]
mov word [esp + 0x5a], cx
mov cx, word [edi + 4]
add edi, ebx
mov word [esp + 0x9a], dx
mov dx, word [edi - 2]
mov word [esp + 0x7a], ax
mov ax, word [edi]
mov word [esp + 0x3a], cx
mov cx, word [edi + 2]
mov word [esp + 0x5c], dx
mov dx, word [edi + 4]
add edi, ebx
mov word [esp + 0x9c], ax
mov ax, word [edi - 2]
mov word [esp + 0x7c], cx
mov cx, word [edi]
mov word [esp + 0x3c], dx
mov dx, word [edi + 2]
mov word [esp + 0x5e], ax
mov ax, word [edi + 4]
add edi, ebx
mov word [esp + 0x9e], cx
mov cx, word [edi - 2]
mov word [esp + 0x7e], dx
mov dx, word [edi]
mov word [esp + 0x3e], ax
mov ax, word [edi + 2]
mov word [esp + 0x60], cx
mov cx, word [edi + 4]
add esi, ebx
add edi, ebx
mov word [esp + 0xa0], dx
mov dx, word [edi - 2]
mov word [esp + 0x80], ax
mov ax, word [edi]
mov word [esp + 0x40], cx
mov cx, word [edi + 2]
mov word [esp + 0x62], dx
mov word [esp + 0xa2], ax
mov word [esp + 0x82], cx
mov dx, word [edi + 4]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x34]
mov word [esp + 0x4a], dx
lea edx, [esp + 0x9c]
push edx
lea eax, [esp + 0x60]
push eax
push ecx
call fcn.005131e0
mov eax, dword [esp + 0xd8]
mov dx, word [esp + 0x68]
mov cx, word [esp + 0xa8]
mov edi, dword [esp + 0xd4]
mov word [eax], dx
mov edx, dword [esp + 0x44]
mov ax, word [esp + 0x88]
mov word [edx], cx
mov ecx, dword [esp + 0xdc]
mov dx, word [esp + 0x48]
mov word [ecx], ax
mov eax, dword [esp + 0xd0]
mov cx, word [esp + 0x6a]
mov word [eax], dx
mov dx, word [esp + 0xaa]
mov ax, word [esp + 0x8a]
mov word [edi - 2], cx
mov cx, word [esp + 0x4a]
mov word [edi], dx
mov dx, word [esp + 0x6c]
mov word [edi + 2], ax
mov ax, word [esp + 0xac]
mov word [edi + 4], cx
mov cx, word [esp + 0x8c]
mov word [edi + ebx - 2], dx
mov dx, word [esp + 0x4c]
mov word [edi + ebx], ax
mov ax, word [esp + 0x6e]
add edi, ebx
mov word [edi + 2], cx
mov cx, word [esp + 0xae]
mov word [edi + 4], dx
mov dx, word [esp + 0x8e]
mov word [edi + ebx - 2], ax
mov ax, word [esp + 0x4e]
add edi, ebx
mov word [edi], cx
mov cx, word [esp + 0x70]
mov word [edi + 2], dx
mov dx, word [esp + 0xb0]
mov word [edi + 4], ax
mov ax, word [esp + 0x90]
add edi, ebx
mov word [edi - 2], cx
mov cx, word [esp + 0x50]
mov word [edi], dx
mov dx, word [esp + 0x72]
mov word [edi + 2], ax
mov ax, word [esp + 0xb2]
mov word [edi + 4], cx
mov cx, word [esp + 0x92]
add edi, ebx
mov word [edi - 2], dx
mov dx, word [esp + 0x52]
mov word [edi], ax
mov ax, word [esp + 0x74]
mov word [edi + 2], cx
mov cx, word [esp + 0xb4]
mov word [edi + 4], dx
mov dx, word [esp + 0x94]
add edi, ebx
mov word [edi - 2], ax
mov ax, word [esp + 0x54]
add esp, 0x28
mov word [edi], cx
mov word [edi + 2], dx
mov word [edi + 4], ax
add edi, ebx
mov cx, word [esp + 0x4e]
mov dx, word [esp + 0x8e]
mov ax, word [esp + 0x6e]
mov word [edi - 2], cx
mov cx, word [esp + 0x2e]
mov word [edi + 4], cx
mov ecx, dword [esp + 0xa0]
mov word [edi], dx
mov edx, dword [esp + 0xbc]
mov word [edi + 2], ax
mov eax, dword [esp + 0xb8]
add ecx, edx
add edi, ebx
dec eax
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xb8], eax
jne 0x5136d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret