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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp edx, 0x110000
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], edx
jne 0x43939e
mov ecx, 0xc
mov eax, esi
mul ecx
jo 0x43998c
mov edi, eax
test eax, eax
js 0x43998c
test edi, edi
je 0x439886
mov eax, dword [0x6f1130]
test eax, eax
jne 0x43937d
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x439390
mov dword [0x6f1130], eax
push edi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
mov ecx, eax
test eax, eax
jne 0x43988b
mov ecx, edi
mov edx, 4
call fcn.0040a640
ud2
mov eax, dword [0x6d6b64]
lea ecx, [esi*8]
test ecx, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
je 0x43986c
lea eax, [ebx + esi*8]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x2c]
mov ecx, eax
shr ecx, 0x12
or ecx, 0xf0
mov dword [esp + 0x5c], ecx
mov ecx, eax
shr ecx, 0xc
mov edx, ecx
or ecx, 0xe0
and edx, 0x3f
mov dword [esp + 0x58], ecx
or edx, 0x80
mov dword [esp + 0x54], edx
mov edx, eax
and eax, 0x3f
shr edx, 6
mov edi, eax
or eax, 0x80
mov esi, edx
shl edi, 0x18
or edx, 0xc0
mov dword [esp + 0x40], eax
and esi, 0x3f
or edi, 0x80000000
mov dword [esp + 0x60], edx
or esi, 0x80
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], esi
jmp 0x43944a
cmp ebx, dword [esp + 0x64]
je 0x43986c
mov edx, dword [ebx]
lea ecx, [esp + 0x70]
push dword [ebx + 4]
call fcn.00551e10
add esp, 4
mov eax, dword [esp + 0x70]
cmp eax, 1
mov dword [esp + 0x68], eax
jne 0x439480
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x48], ecx
jmp 0x439490
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, ecx
xor edx, edx
mov ecx, 1
cmp ebx, 0x80
jae 0x4394c0
xor esi, esi
xor edi, edi
jmp 0x439511
cmp ebx, 0x800
mov edi, dword [esp + 0x40]
mov ebx, dword [esp + 0x60]
mov ecx, 2
mov esi, 0
jb 0x439511
cmp dword [esp + 0x2c], 0x10000
mov edx, dword [esp + 0x4c]
mov ecx, 0
mov ebx, dword [esp + 0x5c]
mov edi, dword [esp + 0x54]
cmovb edx, ecx
mov ecx, dword [esp + 0x50]
cmovb ebx, dword [esp + 0x58]
mov esi, ecx
cmovb edi, ecx
mov ecx, 4
cmovb esi, dword [esp + 0x40]
sbb ecx, 0
shl edi, 8
shl esi, 0x10
mov dword [esp + 0x1c], eax
or edi, edx
movzx edx, bl
mov ebx, dword [esp + 0x14]
or edx, edi
mov edi, dword [esp + 4]
or edx, esi
mov esi, eax
add ebx, 8
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x14], ebx
jmp 0x43956f
mov eax, dword [esp + 0x34]
lea ecx, [edx + edx*2]
inc edx
mov dword [eax + ecx*4], esi
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x3c], edx
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x439840
mov edi, dword [esp + 0x24]
cmp edi, 5
jae 0x43992d
mov eax, dword [esp + 0x20]
mov dword [esp + 0x30], esi
mov dword [esp + 0xc], edi
cmp eax, 0x40
mov dword [esp + 8], eax
jae 0x439610
xor edx, edx
test edi, edi
je 0x4396be
movzx eax, byte [esp + 0x28]
mov edx, 1
xor ebx, ebx
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], 1
mov dword [esp + 4], eax
lea eax, [esp + edi + 0x28]
test bl, 1
jne 0x4395e1
nop dword [eax + eax]
mov edi, eax
lea esi, [edx - 1]
sub edi, ecx
cmp edi, esi
jbe 0x439690
add ecx, edx
cmp ecx, eax
je 0x439690
movzx edx, byte [ecx]
mov esi, dword [esp + 4]
inc ecx
mov bl, 1
lea esi, [edx + esi*2]
mov edx, dword [esp + 0x18]
mov dword [esp + 4], esi
add edx, edx
mov dword [esp + 0x18], edx
xor edx, edx
test bl, 1
je 0x4395d0
jmp 0x4395e1
mov edx, 1
lea ecx, [esp + 0x70]
push edi
lea eax, [esp + 0x2c]
push eax
call fcn.00533320
mov edi, dword [esp + 0x10]
add esp, 8
xor eax, eax
cmp dword [esp + 0xa8], 0
setne al
xor ebx, ebx
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0xb4], 0
cmp eax, edi
ja 0x439764
movzx edx, byte [esp + 0x70]
test edx, edx
je 0x439735
cmp edx, 1
jne 0x43973c
mov edx, esi
mov esi, dword [esp + 8]
movzx ecx, byte [esp + 0x71]
push esi
call fcn.00532520
add esp, 4
jmp 0x439762
mov eax, dword [esp + 0xc]
cmp dword [esp + 8], eax
jb 0x4397e0
mov esi, dword [esp + 0x30]
xor edi, edi
mov ecx, esi
nop word cs:[eax + eax]
movzx edx, byte [ecx]
inc ecx
dec eax
lea edi, [edx + edi*2]
jne 0x4396b0
xor edx, edx
jmp 0x4396d0
mov dword [esp + 0x18], 1
mov dword [esp + 4], 0
xor edi, edi
mov ebx, esi
mov eax, dword [esp + 8]
cmp dword [esp + 4], edi
lea esi, [eax + edx]
je 0x43970c
nop
mov ecx, dword [esp + 0xc]
cmp esi, ecx
jbe 0x4397e0
movzx eax, byte [ebx]
movzx ecx, byte [ebx + ecx]
inc ebx
dec edx
imul eax, dword [esp + 0x18]
sub edi, eax
lea edi, [ecx + edi*2]
mov eax, dword [esp + 8]
cmp dword [esp + 4], edi
lea esi, [eax + edx]
jne 0x4396e0
mov dword [esp + 0x6c], edx
mov edx, esi
mov ecx, ebx
push dword [esp + 0xc]
lea eax, [esp + 0x2c]
push eax
call fcn.00533b10
mov edx, dword [esp + 0x74]
add esp, 8
test al, al
je 0x4396e0
mov eax, dword [esp + 0xc]
neg edx
jmp 0x439798
mov ebx, 1
jmp 0x439764
lea edx, [esp + 0x78]
lea ecx, [esp + 0x70]
push eax
push dword [esp + 0x98]
mov edi, dword [esp + 0x10]
push edi
push esi
lea eax, [esp + 0xc0]
push eax
call fcn.00532950
add esp, 0x14
mov ebx, eax
cmp dword [esp + 0x90], 0
je 0x439790
cmp dword [esp + 0x98], 0
je 0x439790
push dword [esp + 0x94]
push 0
push dword [0x6f1130]
mov esi, edx
call sub.KERNEL32.dll_HeapFree
mov edx, esi
mov eax, dword [esp + 0xc]
test ebx, ebx
je 0x4397e0
mov edi, dword [esp + 8]
cmp edx, edi
ja 0x43996a
mov ebx, eax
mov esi, edx
mov eax, edi
add ebx, edx
mov edx, edi
mov edi, dword [esp + 0x30]
mov ecx, ebx
sub eax, ebx
jb 0x43997d
test edi, edi
je 0x4397e0
mov edx, dword [esp + 0x30]
add ecx, edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov ebx, dword [esp + 0x14]
test edx, edx
jne 0x4397f8
jmp 0x439840
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x14]
test edx, edx
je 0x439840
lea ecx, [esp + 0x70]
push esi
call fcn.00551c40
add esp, 4
cmp dword [esp + 0x70], 1
je 0x43993b
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x78]
mov ebx, dword [esp + 0x7c]
cmp edx, dword [esp + 0x38]
jne 0x439550
lea ecx, [esp + 0x34]
call fcn.0047de40
mov edx, dword [esp + 0x3c]
jmp 0x439550
cmp dword [esp + 0x68], 0
je 0x439440
cmp dword [esp + 0x44], 0
je 0x439440
push dword [esp + 0x48]
push 0
push dword [0x6f1130]
call sub.KERNEL32.dll_HeapFree
jmp 0x439440
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
movsd xmm0, qword [esp + 0x34]
mov dword [ecx + 8], eax
movsd qword [ecx], xmm0
jmp 0x439908
mov ecx, 4
mov edx, 0xaaaaaaab
mov eax, edi
mul edx
mov eax, dword [esp + 0x10]
shr edx, 3
cmp edx, esi
mov dword [eax], ecx
mov dword [eax + 4], edx
lea edx, [ebx + esi*8]
mov dword [eax + 8], 0
jb 0x439910
xor ebx, ebx
cmp edx, dword [ebp + 8]
je 0x439901
mov edi, dword [ebp + 8]
lea eax, [ebx + ebx*2]
mov dword [esp + 4], edx
lea esi, [ecx + eax*4]
nop word cs:[eax + eax]
nop dword [eax]
mov edx, dword [edi]
lea ecx, [esp + 0x70]
push dword [edi + 4]
call fcn.0044e400
mov edx, dword [esp + 8]
add esp, 4
mov eax, dword [esp + 0x78]
add edi, 8
inc ebx
mov dword [esi + 8], eax
movsd xmm0, qword [esp + 0x70]
movsd qword [esi], xmm0
add esi, 0xc
cmp edi, edx
jne 0x4398d0
mov eax, dword [esp + 0x10]
mov dword [eax + 8], ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 0x10]
mov edi, edx
mov edx, esi
mov ecx, ebx
call fcn.00416280
mov ecx, dword [ebx]
mov ebx, dword [ebx + 8]
mov edx, edi
cmp edx, dword [ebp + 8]
jne 0x4398b5
jmp 0x439901
mov ecx, edi
mov edx, 4
push 0x60b6e4
jmp 0x439973
movsd xmm0, qword [esp + 0x74]
mov ecx, str.invalid_raw_bytesbyte_index__is_not_a_valid_boundary__it_is_inside_U__bytes
mov edx, 0x11
movsd qword [esp + 0x70], xmm0
push 0x60aa3c
push 0x60aa74
lea eax, [esp + 0x78]
push eax
call fcn.0045d480
add esp, 0xc
ud2
mov ecx, edx
mov edx, edi
push 0x60b624
call fcn.0045ab50
add esp, 4
ud2
push 0x60b624
call fcn.0045a820
add esp, 4
ud2
call fcn.0040a620
ud2