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

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x9c
mov eax, dword [esp + 0xb0]
mov esi, dword [esp + 0xc0]
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x74], esi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 0x70], eax
movsx eax, word [eax]
cmp esi, 1
je 0x514b61
test eax, eax
jle 0x514c64
cmp eax, dword [0x5b5310]
jg 0x514c64
sub eax, 1
imul eax, dword [0x5b5314]
mov edx, dword [0x5b531d]
mov ebp, dword [0x59ad30]
mov esi, dword [0x5b39d0]
mov ecx, dword [edx + eax]
mov edx, dword [esp + 0x48]
movzx eax, word [ecx + 0x1c]
movzx ecx, word [ecx + 0x1a]
imul edx, ebp
add edx, dword [esp + 0x4c]
sar ax, 5
sar cx, 5
imul edx, edx, 0xe
cwde
movsx ecx, cx
imul eax, ebp
add eax, ecx
imul eax, eax, 0xe
movzx eax, byte [esi + eax + 0xc]
cmp byte [esi + edx + 0xc], al
jne 0x5148d4
movsx eax, bx
mov dword [esp + 0x7c], eax
test eax, eax
jle 0x514c5b
cmp eax, dword [0x5b504c]
jg 0x514c5b
sub eax, 1
mov edx, dword [0x5b5059]
mov ecx, 0x5b62e0
xor ebp, ebp
imul eax, dword [0x5b5050]
mov eax, dword [edx + eax]
movsx eax, byte [eax + 4]
mov dword [esp], eax
call fcn.00438280
mov dword [0x5c91a4], 0
sub esp, 4
movsx esi, word [eax + 0x48]
movsx eax, word [eax + 0x4a]
mov dword [0x5c91a8], 0
mov dword [0x5c91ac], 0
mov ebx, dword [esp + 0x4c]
mov dword [esp + 0x38], esi
lea esi, [esi + ebx - 1]
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x48]
mov dword [0x5c91b0], 0
lea esi, [eax + esi - 1]
mov eax, dword [esp + 0x74]
lea ebx, [eax + eax]
nop
mov dword [esp + 4], 1
mov dword [esp], ebx
call sub.msvcrt.dll_calloc
mov dword [ebp*4 + 0x5c91c0], eax
add ebp, 1
cmp ebp, 8
jne 0x5145a0
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
mov dword [0x5c91e4], eax
xor eax, eax
mov word [0x5c91e0], ax
mov eax, dword [esp + 0x70]
movsx eax, word [eax]
test eax, eax
jle 0x514bd9
cmp eax, dword [edi + 0x10]
jg 0x514bd9
sub eax, 1
imul eax, dword [edi + 0x14]
mov edx, dword [edi + 0x1d]
mov ebx, dword [edx + eax]
mov eax, dword [0x5b5334]
mov dword [esp + 0xc], esi
mov ecx, edi
mov dword [esp + 0x1c], 2
lea edx, [eax + 1]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x74]
mov dword [0x5b5334], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00512c30
mov edx, 0x5c91a4
sub esp, 0x20
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
movzx esi, byte [eax + esi*4 + 0x5aaa3f]
mov eax, 0x5c9180
lea esi, [esi]
xor ebp, ebp
mov dword [eax], 0
add eax, 6
mov word [eax - 2], bp
cmp edx, eax
jne 0x514668
movsx eax, byte [ebx + 8]
mov ecx, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00512f80
sub esp, 0x14
mov ebx, eax
mov dword [esp + 0x8c], eax
test eax, eax
je 0x514be0
mov eax, esi
mov dword [esp + 0x54], 0
mov ebp, edi
movsx eax, al
mov dword [esp + 0x2c], eax
sub eax, 1
mov dword [esp + 0x78], eax
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x44]
mov ecx, ebp
mov eax, dword [esi*4 + 0x5c91c0]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
movsx ebx, word [esi + esi + 0x5c91a4]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], ebx
mov dword [esp], eax
call fcn.00523fb0
mov ecx, ebp
sub esp, 0xc
mov dword [esp + 8], esi
mov esi, dword [esp + 0x38]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 0x5c], eax
call fcn.00524110
sub esp, 0xc
mov dword [esp + 0x60], eax
mov esi, dword [esp + 0x5c]
movsx eax, byte [eax]
movsx edi, byte [esi]
mov dword [esp + 0x50], eax
test ebx, ebx
je 0x514a32
mov esi, dword [esp + 0x78]
lea esi, [esi]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x6c], eax
test eax, eax
je 0x514af7
mov ecx, dword [esp + 0x2c]
xor ebx, ebx
test ecx, ecx
jle 0x514818
mov dword [esp + 0x34], ebp
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x5c]
jmp 0x5147a5
movsx edi, byte [ebp + 1]
movsx ecx, byte [eax + 1]
add ebp, 1
add eax, 1
lea edx, [edi + edi*2 + 3]
cmp byte [ecx + edx*2 + 0x5c9181], 0
je 0x514808
add ebx, 1
cmp dword [esp + 0x2c], ebx
je 0x514808
add esi, 1
cmp dword [esp + 0x2c], esi
jg 0x514780
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00523fb0
sub esp, 0xc
mov ebp, eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00524110
movsx edi, byte [ebp]
movsx ecx, byte [eax]
sub esp, 0xc
lea edx, [edi + edi*2 + 3]
cmp byte [ecx + edx*2 + 0x5c9181], 0
jne 0x51479c
lea esi, [esi]
mov dword [esp + 0x60], eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x5c], ebp
mov ebp, dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x30]
add eax, edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x50]
add eax, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
test edx, edx
jle 0x514968
mov ebx, 0x7ffffff
mov dword [esp + 0x64], edi
xor eax, eax
mov edi, dword [esp + 0x58]
mov dword [esp + 0x68], esi
mov esi, ebx
jmp 0x514876
lea edx, [edx + edx*4]
lea edx, [ecx + edx*2]
cmp edx, esi
jge 0x514869
mov word [esp + 0x42], ax
mov esi, edx
add eax, 1
cmp eax, dword [esp + 0x30]
je 0x514960
movsx edx, word [edi + eax*2]
test edx, edx
jle 0x514c6d
cmp edx, dword [ebp + 0x10]
jg 0x514c6d
sub edx, 1
imul edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1d]
mov ebx, dword [esp + 0x34]
mov ecx, dword [ecx + edx]
movzx edx, word [ecx + 0x1a]
movzx ecx, word [ecx + 0x1c]
sar dx, 5
movsx edx, dx
sub ebx, edx
mov edx, ebx
neg edx
cmovs edx, ebx
sar cx, 5
mov ebx, dword [esp + 0x3c]
movsx ecx, cx
sub ebx, ecx
mov ecx, ebx
neg ecx
cmovs ecx, ebx
cmp edx, ecx
jge 0x514858
lea ecx, [ecx + ecx*4]
lea edx, [edx + ecx*2]
jmp 0x51485e
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov ecx, edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00510310
sub esp, 8
test ebx, ebx
jle 0x514a74
mov eax, edi
lea ebx, [esi + ebx*2]
mov edi, esi
mov ebp, dword [esp + 0x4c]
mov esi, eax
jmp 0x51494b
sub eax, 1
imul eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x1d]
mov ecx, dword [ecx + eax]
mov eax, dword [esp + 0x48]
mov dword [esp], ebp
add edi, 2
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call fcn.00520210
sub esp, 0x14
cmp ebx, edi
je 0x514a74
movsx eax, word [edi]
test eax, eax
jle 0x514957
cmp eax, dword [esi + 0x10]
jle 0x514908
xor ecx, ecx
jmp 0x514915
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x68]
movsx eax, word [esp + 0x42]
mov ebx, dword [esp + 0x58]
lea ecx, [ebx + eax*2]
movsx eax, word [ecx]
test eax, eax
jle 0x514a88
cmp eax, dword [ebp + 0x10]
jg 0x514a88
sub eax, 1
imul eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x1d]
mov ebx, dword [edx + eax]
sub dword [esp + 0x30], 1
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x30]
movzx eax, word [edx + eax*2]
mov word [ecx], ax
mov eax, dword [esp + 0x50]
mov ecx, ebx
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov byte [0x5b9000], 0
mov dword [esp], eax
call fcn.00520210
sub esp, 0x14
cmp byte [0x5b9000], 3
lea edx, [esp + 0x8c]
je 0x514a90
mov dword [esp + 0x14], edx
movsx eax, byte [ebx + 8]
mov ecx, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.005128b0
sub esp, 0x18
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x514750
add dword [esp + 0x54], 1
mov eax, dword [esp + 0x54]
cmp eax, 8
jne 0x5146d7
xor ebx, ebx
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebx*4 + 0x5c91c0]
add ebx, 1
mov dword [esp], eax
call fcn.00565f80
cmp ebx, 8
jne 0x514a50
mov eax, dword [0x5c91e4]
mov dword [esp], eax
call fcn.00565f80
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
xor ebx, ebx
jmp 0x514995
mov ecx, dword [esp + 0x50]
lea eax, [edi + edi*2 + 3]
mov dword [esp + 0x1c], edx
mov byte [ecx + eax*2 + 0x5c9181], 1
mov eax, dword [esp + 0x6c]
sub eax, 1
mov dword [esp + 0x8c], eax
movsx eax, byte [ebx + 8]
mov dword [esp + 0xc], ecx
mov ecx, ebp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 8], edi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00513130
sub esp, 0x20
lea edx, [esp + 0x8c]
jmp 0x5149f1
movsx eax, word [esp + 0x74]
mov dword [esp + 0x14], 2
mov ecx, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00513700
sub esp, 0x18
mov ebx, dword [esp + 0x6c]
lea esi, [esi]
mov eax, dword [ebx*4 + 0x5c91c0]
add ebx, 1
mov dword [esp], eax
call fcn.00565f80
cmp ebx, 8
jne 0x514b38
mov eax, dword [0x5c91e4]
mov dword [esp], eax
call fcn.00565f80
jmp 0x514a74
mov edx, dword [0x5b5334]
lea ecx, [edx + 1]
test eax, eax
jle 0x514c49
cmp eax, dword [edi + 0x10]
jg 0x514c49
sub eax, 1
imul eax, dword [edi + 0x14]
mov ebx, dword [edi + 0x1d]
mov esi, dword [esp + 0x48]
mov eax, dword [ebx + eax]
mov dword [0x5b5334], ecx
mov dword [eax + 0x29], edx
mov ecx, eax
mov dword [esp + 0xb4], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0xc0], 1
mov dword [esp + 0xb0], esi
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb8], 0
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00520210
xor ebx, ebx
jmp 0x5145f9
movsx eax, word [esp + 0x74]
mov dword [esp + 0x14], 2
mov ecx, edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call fcn.00513700
sub esp, 0x18
lea esi, [esi]
mov eax, dword [ebx*4 + 0x5c91c0]
add ebx, 1
mov dword [esp], eax
call fcn.00565f80
cmp ebx, 8
jne 0x514c20
mov eax, dword [0x5c91e4]
mov dword [esp], eax
call fcn.00565f80
jmp 0x514a74
mov dword [0x5b5334], ecx
mov dword [0x29], 0
ud2
movzx eax, byte [4]
ud2
movzx eax, word [0x1c]
ud2
movzx eax, word [0x1a]
ud2