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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
cmp dword [edx], 0
mov edi, edx
je 0x4621fd
mov eax, dword [edi + 0x1c]
mov edx, dword [edi + 0x34]
cmp eax, edx
je 0x462207
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + 0x30]
mov esi, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], ecx
mov ecx, dword [edi + 0x3c]
mov dword [ebp - 0x24], ecx
lea ecx, [eax + ecx - 1]
cmp ecx, edx
jae 0x46234a
mov eax, dword [edi + 0x24]
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
mov esi, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 0x18]
sub esi, eax
mov dword [ebp - 0x38], esi
mov esi, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x3c], eax
mov eax, esi
sub eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x20], eax
lea eax, [ebx - 1]
mov dword [ebp - 0x48], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x4c], eax
lea eax, [esi + ebx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], ebx
add eax, esi
mov dword [ebp - 0x54], eax
jmp 0x462245
cmp byte [edi + 0xe], 0
je 0x462373
mov dword [ecx], 2
jmp 0x4624f2
xor ecx, ecx
cmp dword [ebp - 0x1c], 0xffffffff
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x2c]
mov dword [edi + 0x1c], esi
je 0x462237
mov dword [edi + 0x24], ecx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x48]
lea ecx, [esi + eax]
cmp ecx, edx
jae 0x462469
cmp dword [ebp - 0x10], esi
jne 0x46234a
mov eax, dword [ebp - 0x28]
xor edi, edi
mov esi, 1
movzx ecx, byte [eax + ecx]
mov eax, 1
shld edi, eax, cl
shl esi, cl
test cl, 0x20
mov eax, 0
cmovne edi, esi
cmovne esi, eax
and edi, dword [ebp - 0x4c]
and esi, dword [ebp - 0x50]
or esi, edi
je 0x462220
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
cmp eax, ebx
cmova ebx, eax
cmp dword [ebp - 0x1c], 0xffffffff
cmove ebx, eax
cmp ebx, ecx
mov dword [ebp - 0x44], ebx
cmova ecx, ebx
nop dword [eax + eax]
cmp ecx, ebx
je 0x4622e0
mov eax, dword [ebp - 0x10]
mov esi, ebx
add eax, ebx
cmp eax, edx
jae 0x4624fa
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x54]
lea ebx, [esi + 1]
movzx eax, byte [eax + esi]
cmp al, byte [edi + esi]
je 0x4622a0
add esi, dword [ebp - 0x40]
xor ecx, ecx
cmp dword [ebp - 0x1c], 0xffffffff
mov edi, dword [ebp - 0x14]
mov dword [edi + 0x1c], esi
jne 0x462231
jmp 0x462237
cmp dword [ebp - 0x1c], 0xffffffff
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov eax, 0
cmove edi, eax
nop word cs:[eax + eax]
nop dword [eax]
cmp edi, ecx
jae 0x4623ab
dec ecx
cmp ecx, dword [ebp - 0x24]
jae 0x46250f
mov eax, dword [ebp - 0x10]
lea ebx, [ecx + eax]
cmp ebx, edx
jae 0x46251c
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
movzx eax, byte [eax + ecx]
cmp al, byte [esi + ebx]
je 0x462300
cmp dword [ebp - 0x1c], 0xffffffff
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
mov dword [edi + 0x1c], esi
jne 0x462231
jmp 0x462237
test esi, esi
je 0x4623db
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x28]
mov ecx, esi
jmp 0x462365
je 0x4623e0
inc ecx
je 0x4623de
cmp ecx, edx
jae 0x462360
cmp byte [ebx + ecx], 0xbf
jle 0x462362
mov edx, ecx
jmp 0x4623e0
movzx edx, byte [edi + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov eax, edx
xor al, 1
mov byte [edi + 0xc], al
mov eax, dword [edi + 4]
mov ecx, dword [edi + 0x30]
mov esi, dword [edi + 0x34]
test eax, eax
je 0x4623fc
mov edi, esi
sub edi, eax
jbe 0x462412
cmp byte [ecx + eax], 0xbf
jg 0x462414
mov edx, esi
push 0x502e94
push esi
push eax
call fcn.00412810
cmp dword [ebp - 0x1c], 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x2c]
mov dword [edx + 0x1c], eax
je 0x4623c1
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x2c]
mov dword [eax], 0
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
jmp 0x4624f2
mov eax, dword [ebp - 0x18]
xor edx, edx
mov ecx, dword [ebp - 0x10]
cmp edx, esi
cmova esi, edx
mov dword [edi + 0x1c], esi
mov dword [eax + 4], ecx
mov dword [eax + 8], edx
mov dword [eax], 1
jmp 0x4624f2
mov edi, esi
test edi, edi
jne 0x462418
mov esi, dword [ebp - 0x14]
test dl, dl
jne 0x46248e
jmp 0x4624a7
jne 0x46239d
test edi, edi
je 0x462402
movzx ebx, byte [ecx + eax]
mov esi, dword [ebp - 0x14]
test bl, bl
jns 0x46248a
movzx edi, byte [ecx + eax + 1]
mov esi, ebx
and esi, 0x1f
and edi, 0x3f
cmp bl, 0xdf
jbe 0x462470
mov byte [ebp - 0x20], dl
movzx edx, byte [ecx + eax + 2]
shl edi, 6
mov dword [ebp - 0x10], edx
and dword [ebp - 0x10], 0x3f
add dword [ebp - 0x10], edi
cmp bl, 0xf0
mov edi, dword [ebp - 0x10]
jb 0x46247c
movzx ebx, byte [ecx + eax + 3]
and esi, 7
shl edi, 6
shl esi, 0x12
and ebx, 0x3f
or ebx, edi
or ebx, esi
jmp 0x462483
mov esi, edx
jmp 0x462352
shl esi, 6
or esi, edi
mov ebx, esi
mov esi, dword [ebp - 0x14]
jmp 0x46248a
shl esi, 0xc
or edi, esi
mov ebx, edi
mov esi, dword [ebp - 0x14]
movzx edx, byte [ebp - 0x20]
test dl, dl
je 0x46249f
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx], 0
jmp 0x4624f2
cmp ebx, 0x110000
jne 0x4624b6
mov eax, dword [ebp - 0x18]
mov byte [esi + 0xe], 1
mov dword [eax], 2
jmp 0x4624f2
mov edx, dword [ebp - 0x18]
mov ecx, 1
cmp ebx, 0x80
jb 0x4624e1
mov ecx, 2
cmp ebx, 0x800
jb 0x4624e1
cmp ebx, 0x10000
mov ecx, 4
sbb ecx, 0
add ecx, eax
mov dword [edx + 4], eax
mov dword [edx + 8], ecx
mov dword [esi + 4], ecx
mov dword [edx], 1
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp - 0x44]
add ecx, dword [ebp - 0x10]
cmp edx, ecx
cmova ecx, edx
push 0x5025dc
call fcn.0040cf20
mov edx, dword [ebp - 0x24]
push 0x5025bc
call fcn.0040cf20
mov ecx, ebx
push 0x5025cc
call fcn.0040cf20
nop dword [eax + eax]