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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
movsx ebx, word [esp + 0xb8]
imul ebx, dword [0x59ad30]
mov dword [esp + 0x6c], ecx
movsx eax, word [esp + 0xb4]
mov edi, dword [esp + 0xb0]
add ebx, eax
mov word [esp + 0x7c], di
imul ebx, ebx, 0xe
add ebx, dword [0x5b39d0]
movzx eax, byte [ebx + 0xc]
mov ecx, ebx
mov byte [esp + 0x17], al
call fcn.004988a0
mov dword [esp + 0x24], eax
movzx eax, word [ebx]
and ax, 0xf00
cmp ax, 0x400
je 0x4135ae
cmp ax, 0x300
je 0x413151
xor ebx, ebx
xor esi, esi
movsx eax, di
mov ecx, 0x5b62e0
mov dword [esp], eax
mov dword [esp + 0x30], eax
call fcn.00438280
movsx edi, word [eax + 0x48]
movsx ecx, word [eax + 0x4a]
sub esp, 4
mov eax, edi
mov word [esp + 0x7e], di
shr eax, 0x1f
mov dword [esp + 0x48], edi
add eax, edi
mov word [esp + 0x80], cx
sar eax, 1
mov dword [esp + 0x1c], ecx
neg eax
lea edi, [ebx + eax]
mov ebx, ecx
shr ecx, 0x1f
mov edx, ecx
xor ecx, ecx
add edx, ebx
mov ebx, edx
sar ebx, 1
neg ebx
test di, di
cmovns ecx, edi
lea edx, [esi + ebx]
mov esi, dword [0x59ad2c]
mov word [esp + 0x5e], cx
xor ecx, ecx
test dx, dx
mov edi, ecx
cmovns edi, edx
movsx edx, bp
add edx, eax
add eax, ebp
mov word [esp + 0x68], di
mov edi, dword [0x59ad30]
cmp edx, edi
lea ecx, [edi - 1]
movsx edx, word [esp + 0x18]
cmovge eax, ecx
lea ecx, [esi - 1]
movsx ebp, ax
mov eax, edx
add edx, ebx
add eax, ebx
cmp edx, esi
movsx esi, word [esp + 0x68]
mov word [esp + 0x54], bp
cmovge eax, ecx
mov ecx, ebp
mov dword [esp + 0x58], esi
mov ebx, eax
mov word [esp + 0x5c], ax
movsx eax, word [esp + 0x5e]
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], eax
sub ecx, eax
movsx eax, bx
mov dword [esp + 0x38], eax
lea ecx, [ecx + 1]
mov ebx, eax
sub eax, esi
mov dword [esp + 0x40], ecx
add eax, 1
add ecx, ecx
imul eax, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [esp + 0x44], eax
mov ecx, eax
cmp ebx, esi
jl 0x4131a6
mov eax, dword [esp + 0x28]
mov ebx, dword [0x5b39d0]
mov dword [esp + 0x20], esi
movzx edx, byte [esp + 0x17]
add eax, eax
sub ecx, eax
mov eax, edi
mov edi, ecx
lea esi, [esi]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
imul esi, eax
add esi, ecx
imul esi, esi, 0xe
add esi, ebx
cmp ebp, ecx
jl 0x412ec3
movsx ecx, word [esp + 0x34]
mov eax, dword [esp + 0x20]
sub eax, ecx
mov ecx, 0xa
mov ebx, eax
neg ebx
cmovns eax, ebx
mov ebx, dword [esp + 0x28]
sub ecx, eax
mov dword [esp + 0x4c], eax
mov word [esp + 0x50], cx
jmp 0x412e43
mov eax, 0xfffffc18
add esi, 0xe
mov word [edi + ebx*2], ax
add ebx, 1
cmp ebp, ebx
jl 0x412eb8
cmp byte [esi + 0xc], dl
jne 0x412e30
mov ecx, esi
mov byte [esp + 0x2c], dl
call fcn.004988a0
cmp dword [esp + 0x24], eax
movzx edx, byte [esp + 0x2c]
jne 0x412e30
mov ecx, esi
call fcn.00498fd0
movzx edx, byte [esp + 0x2c]
test eax, eax
jne 0x412e30
movsx eax, word [esp + 0x60]
mov ecx, ebx
sub ecx, eax
mov eax, ecx
neg eax
cmovs eax, ecx
movzx ecx, word [esp + 0x50]
mov word [esp + 0x64], cx
mov ecx, 0xa
sub ecx, eax
cmp eax, dword [esp + 0x4c]
mov word [esp + 0x2c], cx
movzx ecx, word [esp + 0x64]
movzx eax, word [esp + 0x2c]
cmovle eax, ecx
add esi, 0xe
mov word [edi + ebx*2], ax
add ebx, 1
cmp ebp, ebx
jge 0x412e43
lea esi, [esi]
nop
mov ebx, dword [0x5b39d0]
mov eax, dword [0x59ad30]
add dword [esp + 0x20], 1
add edi, dword [esp + 0x3c]
mov esi, dword [esp + 0x20]
cmp dword [esp + 0x38], esi
jge 0x412de8
mov edi, eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x7c]
sub eax, 2
and eax, 0xfffffffd
mov word [esp + 0x82], ax
mov eax, edi
lea esi, [esi]
imul eax, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
add eax, esi
imul eax, eax, 0xe
lea edi, [ebx + eax]
cmp ebp, esi
jge 0x412f2e
jmp 0x413130
add esi, 1
add edi, 0xe
cmp ebp, esi
jl 0x413130
movzx eax, byte [esp + 0x17]
cmp byte [edi + 0xc], al
jne 0x412f20
mov ecx, edi
call fcn.004988a0
cmp dword [esp + 0x24], eax
jne 0x412f20
mov ecx, edi
call fcn.00498fd0
mov edx, eax
test eax, eax
jne 0x412f20
movzx eax, word [edi]
and ax, 0xf00
cmp ax, 0x400
je 0x4133ab
cmp ax, 0x300
jne 0x412f20
movsx eax, word [edi + 4]
test eax, eax
jle 0x41361d
cmp dword [0x5b522c], eax
jl 0x41361d
sub eax, 1
imul eax, dword [0x5b5230]
mov edx, dword [0x5b5239]
mov ebx, dword [edx + eax]
movzx edx, word [ebx + 0x23]
lea eax, [edx - 8]
mov word [esp + 0x70], ax
movzx eax, word [ebx + 0x25]
lea ecx, [eax - 8]
add eax, 8
mov word [esp + 0x72], cx
lea ecx, [edx + 8]
mov word [esp + 0x74], cx
mov ecx, dword [esp + 0x6c]
mov word [esp + 0x76], ax
movsx eax, word [ebx + 0x5e]
movsx ecx, word [ecx + 4]
lea edx, [eax + eax]
movsx eax, word [ebx + 4]
cmp ax, cx
je 0x41300d
mov dword [esp + 0x2c], edx
test ax, ax
jne 0x413578
mov dword [esp], ecx
mov ecx, ebx
call fcn.004f7720
mov ecx, 0x64
sub esp, 4
sub ecx, eax
mov edx, dword [esp + 0x2c]
imul ecx, edx
mov edx, 0x51eb851f
mov eax, ecx
sar ecx, 0x1f
imul edx
sar edx, 5
sub edx, ecx
movzx eax, word [ebx + 0x13]
mov dword [esp + 0x50], 0x64
sub eax, 1
mov word [esp + 0x4c], ax
movzx eax, word [ebx + 0x15]
sub eax, 1
mov word [esp + 0x60], ax
movzx eax, word [ebx + 0x17]
add eax, 1
mov word [esp + 0x64], ax
movzx eax, word [ebx + 0x19]
add eax, 1
mov word [esp + 0x6a], ax
test edx, edx
jne 0x41343d
movsx eax, word [esp + 0x68]
movsx ebx, word [esp + 0x60]
movzx ecx, word [esp + 0x5c]
cmp bx, ax
cmovl ebx, eax
movzx eax, word [esp + 0x6a]
cmp cx, ax
cmovle eax, ecx
movsx ecx, ax
cmp ebx, ecx
jg 0x412f20
movsx eax, word [esp + 0x4c]
movsx edx, word [esp + 0x5e]
mov dword [esp + 0x60], esi
mov esi, dword [esp + 0x3c]
cmp ax, dx
cmovl eax, edx
movzx edx, word [esp + 0x64]
cmp word [esp + 0x54], dx
mov dword [esp + 0x64], edi
mov dword [esp + 0x2c], eax
mov eax, edx
cmovle ax, word [esp + 0x54]
add ecx, 1
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x2c]
cwde
mov dword [esp + 0x4c], eax
mov edx, eax
mov eax, ebx
sub eax, dword [esp + 0x58]
imul eax, dword [esp + 0x40]
sub edx, dword [esp + 0x28]
sub ecx, dword [esp + 0x4c]
mov edi, dword [esp + 0x4c]
lea eax, [edx + eax + 1]
mov edx, dword [esp + 0x44]
lea edx, [edx + eax*2]
lea eax, [ecx + ecx - 2]
movzx ecx, word [esp + 0x50]
mov dword [esp + 0x50], ebp
mov ebp, eax
lea esi, [esi]
lea eax, [ebp + edx]
cmp dword [esp + 0x2c], edi
jg 0x41310b
lea esi, [esi]
add eax, 2
sub word [eax - 2], cx
cmp eax, edx
jne 0x413100
add ebx, 1
add edx, esi
cmp ebx, dword [esp + 0x34]
jne 0x4130f0
mov esi, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
mov ebp, dword [esp + 0x50]
add esi, 1
add edi, 0xe
cmp ebp, esi
jge 0x412f2e
mov edi, dword [esp + 0x20]
cmp dword [esp + 0x38], edi
je 0x4131a6
add edi, 1
mov ebx, dword [0x5b39d0]
mov eax, dword [0x59ad30]
mov dword [esp + 0x20], edi
jmp 0x412f00
movsx eax, word [ebx + 4]
test eax, eax
jle 0x41361d
cmp dword [0x5b522c], eax
jl 0x41361d
sub eax, 1
imul eax, dword [0x5b5230]
mov edx, dword [0x5b5239]
mov eax, dword [edx + eax]
movzx esi, word [eax + 0x23]
movzx ecx, word [eax + 0x25]
mov eax, esi
mov word [esp + 0x60], si
lea esi, [ecx - 8]
lea ebx, [eax - 8]
lea ebp, [eax + 8]
mov word [esp + 0x34], cx
lea eax, [ecx + 8]
mov word [esp + 0x18], ax
jmp 0x412cce
mov eax, dword [esp + 0xbc]
mov esi, 0xffffffff
mov edi, 0xffffffff
mov word [eax], si
mov eax, dword [esp + 0xc0]
mov word [eax], di
mov eax, 1
mov edx, eax
sub ax, word [esp + 0x80]
add ax, word [esp + 0x5c]
cwde
sub dx, word [esp + 0x7e]
add dx, word [esp + 0x54]
mov dword [esp + 0x54], eax
cmp dword [esp + 0x58], eax
jg 0x413363
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x38], 0
mov esi, dword [esp + 0x1c]
mov word [esp + 0x3c], bx
sub eax, edi
imul esi, edi
add eax, eax
mov dword [esp + 0x20], eax
mov eax, edi
movsx edi, dx
add eax, eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], eax
lea esi, [esi]
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x38]
lea esi, [eax + edi*2]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov ebx, eax
cmp eax, edi
jle 0x413260
jmp 0x413348
add ebx, 1
add esi, 2
cmp ebx, dword [esp + 0x24]
jg 0x413348
mov eax, dword [esp + 0x18]
imul eax, dword [0x59ad30]
movzx ecx, byte [esp + 0x17]
add eax, ebx
imul eax, eax, 0xe
add eax, dword [0x5b39d0]
cmp cl, byte [eax + 0xc]
jne 0x413250
mov eax, dword [esp + 0x30]
mov dword [esp], ebx
mov ecx, 0x5b39c8
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.0054c4e0
sub esp, 0x10
test eax, eax
je 0x413250
mov ecx, dword [esp + 0x1c]
mov edx, esi
xor ebp, ebp
xor eax, eax
test ecx, ecx
jle 0x413309
mov dword [esp + 0x2c], ebx
mov edi, dword [esp + 0x48]
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x50]
lea esi, [esi]
lea ebx, [edx + esi]
test edi, edi
jle 0x413390
lea esi, [esi]
nop
movsx ecx, word [edx]
add edx, 2
add eax, ecx
cmp ebx, edx
jne 0x4132e0
mov ecx, dword [esp + 0x20]
add ebp, 1
lea edx, [ebx + ecx]
cmp dword [esp + 0x1c], ebp
jne 0x4132d0
cdq
mov ebx, dword [esp + 0x2c]
mov esi, dword [esp + 0x34]
idiv dword [esp + 0x4c]
cmp word [esp + 0x3c], ax
jge 0x413250
mov edi, dword [esp + 0xbc]
movzx ecx, word [esp + 0x18]
mov word [esp + 0x3c], ax
add esi, 2
mov word [edi], bx
mov edi, dword [esp + 0xc0]
add ebx, 1
mov word [edi], cx
cmp ebx, dword [esp + 0x24]
jle 0x413260
lea esi, [esi]
add dword [esp + 0x18], 1
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x18]
add dword [esp + 0x38], esi
cmp dword [esp + 0x54], eax
jge 0x413230
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call fcn.00565f80
mov eax, dword [esp + 0xbc]
movsx eax, word [eax]
add esp, 0x9c
pop ebx
pop esi
not eax
pop edi
pop ebp
shr eax, 0x1f
ret 0x14
mov ecx, dword [esp + 0x20]
mov ebx, edx
add ebp, 1
lea edx, [ebx + ecx]
cmp dword [esp + 0x1c], ebp
jne 0x4132d0
jmp 0x4132fc
movsx eax, word [edi + 4]
test eax, eax
jle 0x413616
cmp dword [0x5b504c], eax
jl 0x413616
sub eax, 1
imul eax, dword [0x5b5050]
mov ecx, dword [0x5b5059]
mov eax, dword [ecx + eax]
cmp word [esp + 0x82], 0
jne 0x4133fd
cmp word [esp + 0x7c], 4
movzx ecx, byte [eax + 4]
je 0x413528
and ecx, 0xfffffffd
cmp cl, 4
je 0x413534
movzx ebx, word [eax + 0x15]
mov dword [esp + 0x50], 0x14
sub ebx, 1
mov word [esp + 0x4c], bx
movzx ebx, word [eax + 0x17]
sub ebx, 1
mov word [esp + 0x60], bx
movzx ebx, word [eax + 0x19]
movzx eax, word [eax + 0x1b]
add ebx, 1
add eax, 1
mov word [esp + 0x64], bx
mov word [esp + 0x6a], ax
test edx, edx
je 0x41304d
movsx eax, word [esp + 0x72]
movsx ebx, word [esp + 0x68]
movsx ecx, word [esp + 0x5c]
cmp ax, bx
cmovge ebx, eax
movsx eax, word [esp + 0x76]
cmp cx, ax
cmovle eax, ecx
mov dword [esp + 0x34], eax
cmp ebx, eax
jg 0x41304d
movzx eax, word [esp + 0x70]
movzx ecx, word [esp + 0x5e]
mov dword [esp + 0x84], ebp
mov dword [esp + 0x88], esi
mov esi, dword [esp + 0x3c]
cmp ax, cx
mov dword [esp + 0x8c], edi
cmovge ecx, eax
movzx eax, word [esp + 0x54]
movsx ecx, cx
mov dword [esp + 0x78], ecx
movzx ecx, word [esp + 0x74]
mov ebp, dword [esp + 0x78]
cmp ax, cx
cmovle ecx, eax
movsx eax, cx
mov dword [esp + 0x2c], eax
mov ecx, eax
mov eax, ebx
sub eax, dword [esp + 0x58]
imul eax, dword [esp + 0x40]
sub ecx, dword [esp + 0x28]
lea eax, [ecx + eax + 1]
mov ecx, dword [esp + 0x44]
lea ecx, [ecx + eax*2]
mov eax, dword [esp + 0x34]
add eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
sub eax, dword [esp + 0x2c]
lea eax, [eax + eax - 2]
mov edi, eax
lea eax, [edi + ecx]
cmp ebp, dword [esp + 0x2c]
jg 0x413503
lea esi, [esi]
add eax, 2
add word [eax - 2], dx
cmp eax, ecx
jne 0x4134f8
add ebx, 1
add ecx, esi
cmp ebx, dword [esp + 0x34]
jne 0x4134e9
mov ebp, dword [esp + 0x84]
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x8c]
jmp 0x41304d
and ecx, 0xfffffffb
cmp cl, 2
jne 0x4133fd
mov ebx, dword [esp + 0x6c]
movzx ebx, word [ebx + 4]
cmp word [eax + 0xf], bx
jne 0x4133fd
movzx ecx, word [eax + 0x25]
movzx edx, word [eax + 0x27]
lea ebx, [ecx - 8]
mov word [esp + 0x70], bx
lea ebx, [edx - 8]
mov word [esp + 0x72], bx
lea ebx, [ecx + 8]
mov word [esp + 0x74], bx
lea ebx, [edx + 8]
mov edx, 0x1e
mov word [esp + 0x76], bx
jmp 0x4133fd
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
call fcn.004a6120
movsx eax, al
sub esp, 4
cmp al, 1
mov edx, dword [esp + 0x2c]
jle 0x41300d
sub eax, 1
imul eax, edx
lea edx, [eax + 3]
test eax, eax
cmovs eax, edx
sar eax, 2
mov edx, eax
jmp 0x41300d
movsx eax, word [ebx + 4]
test eax, eax
jle 0x413626
cmp dword [0x5b504c], eax
jl 0x413626
sub eax, 1
imul eax, dword [0x5b5050]
mov edx, dword [0x5b5059]
mov eax, dword [edx + eax]
movzx ecx, word [eax + 0x25]
movzx edx, word [eax + 0x27]
cmp byte [eax + 4], 9
mov word [esp + 0x60], cx
lea ebx, [ecx - 8]
lea ebp, [ecx + 8]
lea ecx, [edx + 8]
mov word [esp + 0x34], dx
lea esi, [edx - 8]
mov word [esp + 0x18], cx
jne 0x412cce
movzx eax, byte [eax + 0x119]
mov dword [esp + 0x24], 0
mov byte [esp + 0x17], al
jmp 0x412cce
xor eax, eax
jmp 0x4133d6
movzx eax, word [0x23]
ud2
movzx eax, word [0x25]
ud2