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

Disassembly:
push edi
push esi
push ebp
push ebx
sub esp, 0x94
xor ebx, ebx
mov esi, edx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x84], ecx
lea edx, [esp + 0x44]
lea ecx, [esp + 0x20]
mov eax, esi
call fcn.005135b0
mov dword [esp + 0x74], eax
test esi, esi
jbe 0x513f62
xor ebp, ebp
lea ebx, [eax + esi*4]
mov edx, dword [eax]
xor ecx, ecx
mov cl, byte [edx + 0x18]
mov ecx, dword [esp + ecx*8 + 0x24]
mov dword [edx + 0x10], ecx
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
test edx, edx
je 0x513f4b
mov dword [edx + 0x14], ecx
mov edx, dword [eax]
xor ecx, ecx
mov cl, byte [edx + 0x18]
mov dword [esp + ecx*8 + 0x24], edx
mov edx, dword [eax]
add eax, 4
mov dword [edx + 0x14], ebp
cmp eax, ebx
jb 0x513f31
mov eax, dword [0x606064]
mov edx, dword [0x61af38]
mov edx, dword [eax + edx + 4]
mov dword [esp], edx
call dword [eax + 0x140]
mov edi, eax
lea eax, [esi + esi + 2]
mov edx, eax
shl edx, 2
mov dword [edi + 4], 0
mov dword [esp], edx
mov dword [edi + 8], eax
mov eax, dword [0x606064]
call dword [eax + pe_nt_image_headers32]
mov dword [edi], eax
mov eax, dword [0x606064]
mov edx, dword [0x61af38]
mov edx, dword [eax + edx + 4]
mov dword [esp], edx
call dword [eax + 0x140]
mov ebp, eax
lea eax, [esi + esi + 2]
mov edx, eax
shl edx, 2
mov dword [ebp + 4], 0
mov dword [esp], edx
mov dword [ebp + 8], eax
mov eax, dword [0x606064]
call dword [eax + pe_nt_image_headers32]
mov edx, dword [esp + 0xb4]
mov dword [ebp], eax
test esi, esi
mov dword [esp + 0x7c], edx
jbe 0x5140fa
mov dword [esp + 0x64], esi
mov dword [esp + 0x80], edi
mov dword [esp + 0x78], ebp
xor eax, eax
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x58], eax
test edx, edx
je 0x514020
xor esi, esi
jmp 0x514025
mov esi, 3
mov eax, dword [esp + 0x24]
test eax, eax
je 0x51420a
mov edx, dword [0x606064]
mov ecx, dword [0x61af38]
mov ebp, dword [eax]
mov ecx, dword [edx + ecx + 4]
mov dword [esp], ecx
call dword [edx + 0x140]
mov edx, dword [esp + 0x84]
mov ebx, eax
mov eax, 3
mov dword [esp], 0xc
mov ecx, dword [edx]
mov dword [ebx + 0xc], ecx
mov dword [edx], ebx
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov eax, dword [0x606064]
call dword [eax + pe_nt_image_headers32]
lea edx, [ebp*8]
mov ecx, dword [esp + 0x60]
mov dword [ebx], eax
mov esi, 1
lea edx, [edx + ebp*4]
movzx ebp, word [ecx + edx]
mov word [eax], bp
movzx eax, word [ecx + edx + 2]
mov ebp, dword [ebx]
mov word [ebp + 2], ax
movzx ecx, word [ecx + edx + 4]
mov ebx, dword [ebx]
mov word [ebx + 4], cx
mov eax, dword [esp + 0x24]
mov dword [eax + 0x1c], esi
mov eax, dword [esp + 0x24]
mov dword [eax + 0x38], esi
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x24], eax
test eax, eax
je 0x5140d4
xor edx, edx
mov dword [eax + 0x14], edx
mov eax, dword [esp + 0x24]
mov dword [eax + 0x30], edx
mov eax, dword [esp + 0x70]
inc eax
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x64]
cmp eax, edx
jb 0x513fff
mov ebp, dword [esp + 0x78]
mov edi, dword [esp + 0x80]
mov esi, edx
mov eax, dword [ebp]
mov edx, dword [0x606064]
mov dword [esp], eax
call dword [edx + 0x134]
mov dword [ebp], 0
mov eax, dword [0x606064]
mov edx, dword [0x61af38]
mov edx, dword [eax + edx + 4]
mov dword [esp + 4], ebp
mov dword [esp], edx
call dword [eax + 0x144]
mov eax, dword [edi]
mov edx, dword [0x606064]
mov dword [esp], eax
call dword [edx + 0x134]
mov dword [edi], 0
mov eax, dword [0x606064]
mov edx, dword [0x61af38]
mov edx, dword [eax + edx + 4]
mov dword [esp + 4], edi
mov dword [esp], edx
call dword [eax + 0x144]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x51418f
lea esi, [esi]
mov ebx, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [0x606064]
mov edx, dword [esp + 0x48]
mov dword [esp], edx
call dword [eax + 0x144]
mov eax, ebx
test ebx, ebx
jne 0x514170
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.004f7cb0
mov dword [esp + 0x48], 0
test esi, esi
jbe 0x5141d3
mov ebx, dword [esp + 0x74]
mov eax, esi
xor esi, esi
lea ebp, [ebx + eax*4]
mov eax, dword [ebx]
mov edx, dword [esp + 0x44]
mov dword [esp + 4], eax
mov dword [esp], edx
mov eax, dword [0x606064]
call dword [eax + 0x144]
mov dword [ebx], esi
add ebx, 4
cmp ebx, ebp
jb 0x5141b2
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.004f7cb0
mov eax, dword [esp + 0x74]
mov edx, dword [0x606064]
mov dword [esp + 0x44], 0
mov dword [esp], eax
call dword [edx + 0x134]
add esp, 0x94
mov eax, 1
pop ebx
pop ebp
pop esi
pop edi
ret
mov eax, dword [esp + 0x2c]
mov ebx, 1
test eax, eax
je 0x514820
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0xc]
mov al, byte [eax + 0x11]
cmp al, 2
jb 0x514790
mov ecx, dword [edx + 8]
mov cl, byte [ecx + 0x11]
cmp cl, 2
jb 0x514790
mov eax, 1
mov edx, dword [esp + 0x70]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x50], eax
mov edi, dword [esp + 0x80]
mov dword [esp + 0x6c], ebx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x514279
mov edx, dword [eax + 0xc]
mov cl, byte [eax + 0x11]
mov ebx, dword [eax + 0xc]
mov byte [eax + 0x18], cl
mov dword [eax + 0x14], ebx
mov eax, edx
test eax, eax
jne 0x514264
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
test edx, edx
je 0x5142c5
lea esi, [esi]
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x10]
mov ebx, dword [edx + 0x14]
mov ebp, edx
mov edx, eax
mov al, byte [ebp + 0x18]
test edx, edx
mov dword [ebp + 0x2c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x30], ebx
mov ebx, dword [ebp + 4]
mov byte [ebp + 0x34], al
mov eax, dword [ebp + 8]
mov dword [ebp + 0x38], ecx
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x28], eax
jne 0x514290
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
test edx, edx
je 0x51430a
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x10]
mov ebx, dword [edx + 0x14]
mov ebp, edx
mov edx, eax
mov al, byte [ebp + 0x18]
test edx, edx
mov dword [ebp + 0x2c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x30], ebx
mov ebx, dword [ebp + 4]
mov byte [ebp + 0x34], al
mov eax, dword [ebp + 8]
mov dword [ebp + 0x38], ecx
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x28], eax
jne 0x5142d5
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x38], eax
test edx, edx
je 0x514355
lea esi, [esi]
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x10]
mov ebx, dword [edx + 0x14]
mov ebp, edx
mov edx, eax
mov al, byte [ebp + 0x18]
test edx, edx
mov dword [ebp + 0x2c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x30], ebx
mov ebx, dword [ebp + 4]
mov byte [ebp + 0x34], al
mov eax, dword [ebp + 8]
mov dword [ebp + 0x38], ecx
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x28], eax
jne 0x514320
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
test edx, edx
je 0x51439a
mov eax, dword [edx + 0x10]
mov ecx, dword [edx + 0x10]
mov ebx, dword [edx + 0x14]
mov ebp, edx
mov edx, eax
mov al, byte [ebp + 0x18]
test edx, edx
mov dword [ebp + 0x2c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp + 0x30], ebx
mov ebx, dword [ebp + 4]
mov byte [ebp + 0x34], al
mov eax, dword [ebp + 8]
mov dword [ebp + 0x38], ecx
mov dword [ebp + 0x24], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x28], eax
jne 0x514365
mov eax, dword [esp + 0x64]
test eax, eax
jbe 0x5143d7
mov ecx, dword [esp + 0x74]
lea eax, [ecx + eax*4]
mov ebp, eax
nop
lea esi, [esi]
mov eax, dword [ecx]
mov dl, byte [eax + 0x18]
mov byte [eax + 0x34], dl
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
mov dword [eax + 0x2c], edx
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
mov dword [eax + 0x30], edx
mov eax, dword [ecx]
add ecx, 4
mov edx, dword [eax + 0x1c]
cmp ecx, ebp
mov dword [eax + 0x38], edx
jb 0x5143b0
mov eax, esi
inc esi
test eax, eax
jne 0x5143f0
mov eax, dword [esp + 0x4c]
xor edx, edx
mov ecx, 3
div ecx
mov ebp, edx
jmp 0x514434
cmp eax, 1
jne 0x514410
mov eax, dword [esp + 0x4c]
xor edx, edx
inc eax
mov ecx, 3
div ecx
mov ebp, edx
jmp 0x514434
cmp eax, 2
jne 0x514430
mov eax, dword [esp + 0x4c]
xor edx, edx
add eax, 2
mov ecx, 3
div ecx
mov ebp, edx
jmp 0x514434
mov ebp, dword [esp + 0x50]
test ebp, ebp
jne 0x514450
mov eax, dword [esp + 0x6c]
mov eax, dword [esp + eax*8 + 0x24]
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x68], eax
jmp 0x51448b
cmp ebp, 1
jne 0x514470
mov eax, dword [esp + 0x6c]
mov eax, dword [esp + eax*8 + 0x24]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x68], eax
jmp 0x51448b
cmp ebp, 2
jne 0x51448b
mov eax, dword [esp + 0x6c]
mov eax, dword [esp + eax*8 + 0x24]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x68], eax
xor edx, edx
mov eax, ebp
mov ecx, 3
mov ebx, dword [esp + 0x6c]
div ecx
mov ebx, dword [esp + ebx*8 + 0x24]
mov ecx, dword [esp + 0x60]
lea eax, [esp + 0x24]
mov ebx, dword [ebx]
mov dword [esp + 0x70], eax
lea eax, [ebx*8]
lea eax, [eax + ebx*4]
add ecx, eax
lea eax, [ebp + 1]
mov ebx, 3
movzx edx, word [ecx + edx*2]
mov dword [esp + 0x88], edx
xor edx, edx
div ebx
mov eax, dword [edi]
mov ebx, dword [esp + 0x88]
mov word [eax], bx
lea eax, [ebp + 2]
mov ebx, 3
movzx edx, word [ecx + edx*2]
mov dword [esp + 0x88], edx
xor edx, edx
div ebx
mov eax, dword [edi]
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x8c], ebp
mov ebp, dword [esp + 0x88]
mov word [eax + 2], bp
movzx ecx, word [ecx + edx*2]
mov eax, dword [edi]
mov edx, dword [esp + 0x74]
mov ebp, dword [esp + 0x70]
mov word [eax + 4], cx
mov dword [edi + 4], 3
mov eax, dword [esp + ebx*8 + 0x24]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x20]
mov edx, ebp
mov ebp, dword [esp + 0x8c]
call fcn.00515160
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], edx
mov edx, eax
lea eax, [esp + 0x24]
mov dword [esp + 0x14], ecx
mov ecx, eax
mov dword [esp + 0x18], esi
mov eax, edi
call fcn.00514cb0
mov edx, dword [esp + 0x54]
cmp esi, 4
lea eax, [eax + edx + 1]
mov dword [esp + 0x70], eax
jge 0x5145a0
mov eax, dword [esp + 0x68]
mov al, byte [eax + 0x18]
test al, al
ja 0x5145af
jmp 0x514700
mov eax, dword [esp + 0x68]
mov al, byte [eax + 0x11]
test al, al
jbe 0x514700
mov eax, dword [edi]
mov edx, dword [esp + 0x78]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x74]
movzx eax, word [eax + 2]
mov dword [esp + 0x88], ebp
mov ebp, dword [edx]
mov word [ebp], ax
mov eax, dword [edi]
mov ebp, dword [edx]
movzx eax, word [eax]
mov word [ebp + 2], ax
mov eax, edx
mov dword [edx + 4], 2
mov edx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x18], esi
mov edx, dword [esp + 0x68]
lea ecx, [esp + 0x24]
mov ebp, dword [esp + 0x88]
call fcn.00514cb0
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x78]
add edx, eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x70], edx
test al, 1
je 0x51462f
mov edx, ecx
mov ecx, dword [edx]
movzx ebx, word [ecx + eax*2 - 4]
mov word [ecx + eax*2], bx
inc dword [edx + 4]
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x58]
cmp eax, edx
jbe 0x514643
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], eax
cmp esi, 4
jl 0x51425c
mov eax, dword [0x606064]
mov edx, dword [0x61af38]
mov edx, dword [eax + edx + 4]
mov dword [esp], edx
call dword [eax + 0x140]
mov edx, dword [esp + 0x84]
mov ebx, eax
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
mov ebp, dword [edx]
mov dword [ebx + 0xc], ebp
mov dword [edx], ebx
mov eax, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov dword [ebx + 4], 0
lea eax, [eax + ecx - 2]
mov dword [ebx + 8], eax
mov edx, dword [0x606064]
shl eax, 2
mov dword [esp], eax
call dword [edx + pe_nt_image_headers32]
mov edx, dword [esp + 0x78]
mov dword [ebx], eax
mov eax, dword [edx + 4]
cmp eax, 2
jbe 0x5146d5
mov ebp, edx
mov edx, dword [ebp]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
movzx edx, word [edx + eax*2 - 2]
mov word [ecx + esi*2], dx
inc dword [ebx + 4]
mov eax, dword [ebp + 4]
dec eax
mov dword [ebp + 4], eax
cmp eax, 2
ja 0x5146b5
mov eax, dword [esp + 0x80]
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
mov ebp, dword [eax + 4]
mov esi, dword [eax]
shl ebp, 0
lea edi, [edx + ecx*2]
mov ecx, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 8]
mov dword [ebx + 4], eax
jmp 0x5140dd
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x58]
cmp eax, edx
jbe 0x514714
mov dword [esp + 0x50], ebp
mov dword [esp + 0x58], eax
cmp esi, 4
jl 0x51425c
mov eax, dword [0x606064]
mov edx, dword [0x61af38]
mov edx, dword [eax + edx + 4]
mov dword [esp], edx
call dword [eax + 0x140]
mov edx, dword [esp + 0x84]
mov ebx, eax
mov eax, dword [esp + 0x80]
mov ecx, dword [edx]
mov dword [ebx + 0xc], ecx
mov dword [edx], ebx
mov edx, dword [eax + 4]
mov dword [ebx + 8], edx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov eax, dword [eax + 4]
mov edx, dword [0x606064]
shl eax, 2
mov dword [esp], eax
call dword [edx + pe_nt_image_headers32]
mov edi, eax
mov eax, dword [esp + 0x80]
mov dword [ebx], edi
mov ecx, dword [eax + 4]
mov esi, dword [eax]
shl ecx, 0
rep movsd dword es:[edi], dword [esi]
jmp 0x5140dd
mov ecx, dword [edx + 4]
mov ah, byte [ecx + 0x11]
cmp ah, 2
jb 0x5147b0
cmp al, 2
jb 0x5147b0
mov eax, 2
jmp 0x514241
mov edx, dword [edx + 8]
mov dl, byte [edx + 0x11]
cmp dl, 2
jb 0x5147d0
cmp ah, 2
jb 0x5147d0
xor eax, eax
jmp 0x514241
cmp ah, dl
jbe 0x514800
cmp ah, al
jbe 0x5147f0
mov eax, 2
jmp 0x514241
mov eax, 1
jmp 0x514241
cmp dl, al
jbe 0x514810
xor eax, eax
jmp 0x514241
mov eax, 1
jmp 0x514241
mov eax, dword [esp + ebx*8 + 0x2c]
inc ebx
test eax, eax
je 0x514820
mov edx, eax
jmp 0x51421f