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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x45a028]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov ebx, edx
lea edx, [eax - 2]
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x4c], edx
cmp ebx, esi
je 0x43a3a1
cmp eax, esi
je 0x43a3a1
cmp ecx, esi
je 0x43a3a1
cmp dword [ebp + 0xc], esi
jge 0x4399c0
lea eax, [esi - 0x20]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx]
cmp eax, 0x50435245
je 0x4399ed
sub eax, 0x45524350
neg eax
sbb eax, eax
and eax, 0x19
add eax, 0xffffffe3
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0xc]
test cl, 2
jne 0x439a0f
mov eax, 0xffffffe4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 8]
movzx edi, word [ebx + 0x22]
mov edx, eax
shr edx, 0xb
and edx, 1
mov dword [esp + 0xb0], edx
lea edx, [ebx + edi*2]
mov dword [esp + 0x90], edx
movzx edx, word [ebx + 0x26]
mov dword [esp + 0x80], edx
movzx edx, word [ebx + 0x24]
mov dword [esp + 0xec], esi
mov dword [esp + 0x10c], esi
mov esi, dword [ebx + 0x30]
mov dword [esp + 0x84], edx
mov dword [esp + 0x64], 0x989680
mov dword [esp + 0x68], 0x989680
test ecx, 0x2000
je 0x439a81
mov ebx, dword [ebx + 0x10]
cmp ebx, 0x989680
jae 0x439a7d
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 0x10]
test ecx, 0x4000
je 0x439a98
mov ebx, dword [ebx + 0x14]
cmp ebx, 0x989680
jae 0x439a98
mov dword [esp + 0x68], ebx
test esi, esi
jne 0x439aa1
mov esi, 0x44d398
mov ebx, eax
shr ebx, 4
and ebx, 1
mov dword [esp + 0x50], ebx
mov ebx, ecx
shr ebx, 8
and ebx, 1
mov dword [esp + 0x58], ebx
mov ebx, eax
shr ebx, 0x12
and ebx, 1
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0x10]
movzx ebx, word [ebx + 0x26]
imul edx, ebx
mov ebx, dword [ebp + 0xc]
add edx, edi
mov edi, dword [esp + 0x10]
lea edx, [edi + edx*2]
mov edi, dword [esp + 0x38]
mov dword [esp + 0xd8], edi
lea edi, [edi + ebx*2]
mov dword [esp + 0xdc], edi
mov dword [esp + 0x28], edi
mov edi, eax
shr edi, 5
and edi, 1
mov dword [esp + 0xbc], edi
mov edi, eax
shr edi, 0x1d
and edi, 1
shr ecx, 0xc
mov dword [esp + 0xb8], edi
and ecx, 1
mov edi, eax
shr edi, 0x19
mov dword [esp + 0xd0], ecx
lea ecx, [esi + 0x100]
mov dword [esp + 0xd4], edx
xor edx, edx
and edi, 1
mov dword [esp + 0x9c], esi
add esi, 0x340
mov dword [esp + 0xf8], edx
mov dword [esp + 0xb4], edi
mov dword [esp + 0x8c], edx
mov dword [esp + 0xa8], edx
mov dword [esp + 0xac], edx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], edx
mov dword [esp + 0xc8], edx
mov dword [esp + 0x114], edx
mov dword [esp + 0x110], edx
mov dword [esp + 0x108], edx
mov dword [esp + 0xa0], ecx
mov dword [esp + 0xa4], esi
test eax, 0x1800000
je 0x439bae
mov edx, eax
shr edx, 0x17
and edx, 1
and eax, 0x700000
mov dword [esp + 0xcc], edx
cmp eax, 0x300000
ja 0x439c1f
je 0x439c18
test eax, eax
je 0x439bd5
cmp eax, 0x100000
je 0x439c11
cmp eax, 0x200000
jne 0x439c2d
mov eax, 0xa
mov dword [esp + 0x78], 0
cmp eax, 0xff
jle 0x439c5b
mov ecx, eax
sar ecx, 8
movzx edx, al
and ecx, 0xff
mov dword [esp + 0x7c], 2
mov word [esp + 0x94], cx
mov word [esp + 0x96], dx
jmp 0x439c6b
mov eax, 0xd
jmp 0x439bda
mov eax, 0xd0a
jmp 0x439bda
cmp eax, 0x400000
je 0x439c51
cmp eax, 0x500000
je 0x439c47
mov eax, 0xffffffe9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x78], 2
jmp 0x439c6b
mov dword [esp + 0x78], 1
jmp 0x439c6b
mov dword [esp + 0x7c], 1
mov word [esp + 0x94], ax
mov eax, 0x55555556
imul dword [ebp + 0x10]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea esi, [eax + eax*2]
lea ecx, [esi + esi]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x10]
movzx eax, word [eax + 0x20]
test ax, ax
je 0x439cf4
mov ecx, eax
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x439cf4
lea esi, [ecx + ecx*2 + 3]
lea ecx, [esi*4]
push ecx
call dword [0x45a798]
mov edi, eax
add esp, 4
mov dword [esp + 0x6c], edi
test edi, edi
jne 0x439cea
lea eax, [edi - 6]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x40], 1
jmp 0x439cfc
mov edi, dword [esp + 0x20]
mov dword [esp + 0x6c], edi
mov ebx, dword [esp + 0xdc]
lea ecx, [esi + esi]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], eax
mov dword [esp + 0xf4], 0
test edi, edi
je 0x439d79
mov ecx, dword [esp + 0x10]
movzx edx, word [ecx + 0x1e]
add edx, edx
lea eax, [edi + esi*4]
add edx, edx
mov ecx, eax
sub ecx, edx
lea edx, [edi + 8]
cmp ecx, edx
jae 0x439d47
mov ecx, edx
sub eax, 4
cmp eax, ecx
jb 0x439d61
mov edi, edi
mov dword [eax], 0xffffffff
sub eax, 4
cmp eax, ecx
jae 0x439d50
mov edi, dword [esp + 0x6c]
mov dword [edi + 4], 0xffffffff
mov eax, dword [esp + 0x6c]
mov dword [eax], 0xffffffff
mov ebx, dword [esp + 0xdc]
cmp dword [esp + 0x50], 0
mov esi, dword [esp + 0x7c]
mov edx, dword [esp + 0x10]
jne 0x439dc8
mov eax, dword [edx + 0xc]
test al, 0x10
je 0x439dc8
movzx ecx, word [edx + 0x18]
movzx edi, cx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x24], ecx
mov dword [esp + 0x1c], edi
test al, 0x20
je 0x439dcc
mov eax, 0xff
cmp cx, ax
ja 0x439dcc
mov eax, dword [esp + 0xa0]
movzx ecx, cx
movzx ecx, byte [ecx + eax]
mov dword [esp + 0x24], ecx
jmp 0x439dcc
mov ecx, dword [esp + 0x24]
mov eax, dword [edx + 0xc]
test al, 0x40
je 0x439e0a
movzx edx, word [edx + 0x1a]
movzx edi, dx
mov dword [esp + 0x54], 1
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edi
test al, al
jns 0x439e0a
mov eax, 0xff
cmp dx, ax
ja 0x439e0a
mov eax, dword [esp + 0xa0]
movzx edx, dx
movzx eax, byte [edx + eax]
mov dword [esp + 0x2c], eax
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x44], 0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], edx
je 0x439e98
mov ecx, edi
cmp edi, ebx
jae 0x439e8a
cmp dword [esp + 0x78], 0
je 0x439e58
mov edx, dword [esp + 0x78]
push edx
lea esi, [esp + 0x80]
mov edx, ebx
call fcn.0043a4a0
mov esi, dword [esp + 0x80]
add esp, 4
test eax, eax
jne 0x439e8a
mov ebx, dword [esp + 0xdc]
jmp 0x439e83
lea eax, [esi + esi]
mov edx, ebx
sub edx, eax
cmp ecx, edx
ja 0x439e83
mov ax, word [esp + 0x94]
cmp word [ecx], ax
jne 0x439e83
cmp esi, 1
je 0x439e8a
mov dx, word [esp + 0x96]
cmp word [ecx + 2], dx
je 0x439e8a
add ecx, 2
cmp ecx, ebx
jb 0x439e27
mov eax, dword [esp + 0x1c]
mov edx, ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], edx
mov ebx, dword [esp + 0x10]
mov ebx, dword [ebx + 8]
and ebx, 0x4000000
jne 0x439fc0
cmp dword [esp + 0x3c], ebx
je 0x439f05
cmp ax, cx
je 0x439ee3
cmp edi, edx
jae 0x439fc0
mov esi, dword [esp + 0x1c]
movzx eax, word [edi]
cmp ax, si
je 0x439fc0
cmp ax, cx
je 0x439fc0
add edi, 2
cmp edi, edx
jb 0x439ec2
jmp 0x439fc0
cmp edi, edx
jae 0x439fc0
jmp 0x439ef0
cmp word [edi], ax
je 0x439fc0
add edi, 2
cmp edi, edx
jb 0x439ef0
jmp 0x439fc0
cmp dword [esp + 0x58], 0
je 0x439fc0
cmp edi, dword [esp + 0xd8]
jbe 0x439fc0
cmp edi, edx
jae 0x439f97
cmp dword [esp + 0x78], 0
je 0x439f5c
cmp edi, dword [esp + 0xd8]
jbe 0x439f90
mov eax, dword [esp + 0x78]
mov edx, dword [esp + 0xd8]
push eax
lea esi, [esp + 0x80]
mov ecx, edi
call fcn.0043a530
mov edx, dword [esp + 0x2c]
add esp, 4
test eax, eax
jne 0x439f97
mov esi, dword [esp + 0x7c]
jmp 0x439f90
mov eax, dword [esp + 0xd8]
lea ecx, [esi + esi]
add eax, ecx
cmp edi, eax
jb 0x439f90
mov eax, edi
sub eax, ecx
mov cx, word [esp + 0x94]
cmp word [eax], cx
jne 0x439f90
cmp esi, 1
je 0x439f97
mov cx, word [esp + 0x96]
cmp word [eax + 2], cx
je 0x439f97
add edi, 2
cmp edi, edx
jb 0x439f21
cmp word [edi - 2], 0xd
jne 0x439fc0
mov eax, dword [esp + 0x78]
cmp eax, 1
je 0x439fac
cmp eax, 2
jne 0x439fc0
cmp edi, edx
jae 0x439fc0
cmp word [edi], 0xa
jne 0x439fc0
add edi, 2
lea esp, [esp]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x28], edx
test ebx, ebx
jne 0x43a07f
cmp dword [esp + 0xec], ebx
jne 0x43a07f
cmp dword [esp + 0x54], ebx
je 0x43a07f
mov eax, edx
sub eax, edi
and eax, 0xfffffffe
cmp eax, 0x7d0
jge 0x43a07f
xor ecx, ecx
cmp dword [esp + 0x3c], ecx
setne cl
lea eax, [edi + ecx*2]
cmp eax, dword [esp + 0x4c]
jbe 0x43a07f
mov dx, word [esp + 0x2c]
cmp word [esp + 0x30], dx
je 0x43a04a
cmp eax, dword [esp + 0x14]
jae 0x43a03d
movzx edx, word [esp + 0x30]
mov esi, dword [esp + 0x14]
movzx ecx, word [eax]
add eax, 2
cmp ecx, edx
je 0x43a074
movzx ebx, word [esp + 0x2c]
cmp ecx, ebx
je 0x43a074
cmp eax, esi
jb 0x43a026
mov dword [esp + 0x18], 0
jmp 0x43a235
cmp eax, dword [esp + 0x14]
jae 0x43a03d
mov cx, word [eax]
add eax, 2
cmp cx, word [esp + 0x30]
je 0x43a070
cmp eax, dword [esp + 0x14]
jb 0x43a050
mov dword [esp + 0x18], 0
jmp 0x43a235
mov esi, dword [esp + 0x14]
sub eax, 2
cmp eax, esi
jae 0x43a03d
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xd4]
xor esi, esi
push esi
push esi
lea edx, [esp + 0x68]
push edx
push 2
push edi
push eax
push edi
mov dword [esp + 0xfc], edi
mov dword [esp + 0x104], edi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x118], esi
mov dword [esp + 0x10c], esi
mov dword [esp + 0xa4], esi
call fcn.00434d20
add esp, 0x1c
mov ecx, eax
mov dword [esp + 0x18], ecx
cmp dword [esp + 0xc8], esi
je 0x43a0e7
cmp dword [esp + 0x34], esi
jne 0x43a0e7
mov edx, dword [esp + 0xe8]
mov dword [esp + 0x34], edx
mov dword [esp + 0x5c], edi
cmp ecx, esi
jg case.default.0x43a100
je case.0x43a100.995
lea eax, [ecx + 0x3e4]
cmp eax, 4
ja case.default.0x43a100
jmp dword [eax*4 + 0x43a3bc]
mov eax, dword [esp + 0x88]
mov ebx, edi
mov dword [esp + 0x8c], eax
jmp 0x43a132
mov eax, dword [esp + 0xe0]
cmp eax, edi
jbe case.0x43a100.995
mov ebx, eax
jmp 0x43a132
mov dword [esp + 0x8c], esi
lea ebx, [edi + 2]
mov dword [esp + 0x18], esi
cmp dword [esp + 0x44], esi
je 0x43a1ae
cmp dword [esp + 0x78], esi
je 0x43a172
cmp edi, dword [esp + 0xdc]
jae 0x43a1ae
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0xdc]
push ecx
lea esi, [esp + 0x80]
mov ecx, edi
call fcn.0043a4a0
add esp, 4
test eax, eax
jne 0x43a235
jmp 0x43a1ae
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0xdc]
lea edx, [eax + eax]
sub ecx, edx
cmp edi, ecx
ja 0x43a1ae
mov dx, word [edi]
cmp dx, word [esp + 0x94]
jne 0x43a1ae
cmp eax, 1
je 0x43a235
mov ax, word [edi + 2]
cmp ax, word [esp + 0x96]
je 0x43a235
cmp dword [esp + 0x50], 0
mov edi, ebx
jne 0x43a235
mov eax, dword [esp + 0x14]
cmp ebx, eax
ja 0x43a235
cmp ebx, dword [esp + 0x38]
jbe 0x43a1fb
cmp word [ebx - 2], 0xd
jne 0x43a1fb
cmp ebx, eax
jae 0x43a1fb
cmp word [ebx], 0xa
jne 0x43a1fb
mov ecx, dword [esp + 0x10]
test dword [ecx + 0xc], 0x800
jne 0x43a1fb
mov eax, dword [esp + 0x78]
cmp eax, 1
je 0x43a1f8
cmp eax, 2
je 0x43a1f8
cmp dword [esp + 0x7c], 2
jne 0x43a1fb
lea edi, [ebx + 2]
mov esi, dword [esp + 0x7c]
mov ebx, dword [esp + 0xdc]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x110], 0
jmp 0x439e0e
mov dword [esp + 0x18], esi
jmp 0x43a235
cmp ecx, 1
je 0x43a2bb
cmp ecx, 0xfffffc19
je 0x43a2b9
cmp dword [esp + 0x40], 0
je 0x43a24a
mov edx, dword [esp + 0x6c]
push edx
call dword [0x45a79c]
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43a25b
cmp eax, 0xfffffff4
jne 0x43a3a6
mov eax, dword [esp + 0x34]
test eax, eax
je 0x43a2a1
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
sub eax, ecx
sar eax, 1
mov dword [edx], eax
mov eax, dword [esp + 0x14]
sub eax, ecx
sar eax, 1
mov dword [edx + 4], eax
mov eax, dword [esp + 0x5c]
sub eax, ecx
sar eax, 1
mov dword [edx + 8], eax
mov eax, 0xfffffff4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret
xor esi, esi
mov edi, dword [esp + 0x48]
mov ebx, 0x10000
cmp dword [esp + 0x40], esi
je 0x43a309
mov esi, dword [esp + 0x6c]
cmp edi, 4
jl 0x43a2ef
mov edx, dword [esp + 0x20]
lea eax, [edi*4 - 8]
push eax
lea ecx, [esi + 8]
push ecx
add edx, 8
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp dword [esp + 0xf0], edi
jle 0x43a2ff
or dword [esp + 0xf4], ebx
push esi
call dword [0x45a79c]
add esp, 4
mov esi, dword [esp + 0xf0]
test dword [esp + 0xf4], ebx
je 0x43a321
cmp esi, edi
jl 0x43a321
xor ebx, ebx
jmp 0x43a32a
mov eax, esi
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, dword [esp + 0x10]
movzx ecx, word [eax + 0x1e]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
cmp eax, ecx
jg 0x43a364
lea eax, [ecx + ecx + 2]
mov ecx, dword [ebp + 0x10]
cmp eax, ecx
jle 0x43a34a
mov eax, ecx
mov ecx, dword [esp + 0x20]
lea edi, [ecx + esi*4]
lea ecx, [ecx + eax*4]
cmp edi, ecx
jae 0x43a364
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xd8]
mov edx, dword [esp + 0xe0]
mov ecx, dword [esp + 0x20]
sub edx, eax
sar edx, 1
mov dword [ecx], edx
mov edx, dword [esp + 0xe4]
sub edx, eax
sar edx, 1
mov dword [ecx + 4], edx
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00441db6
mov esp, ebp
pop ebp
ret