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

Disassembly:
sub esp, 0x8c
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x228]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x34], ebp
jne 0x440674
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
push eax
mov eax, dword [esp + 0xa0]
push ecx
mov ecx, dword [esp + 0xa0]
push edx
push eax
push ecx
mov ecx, ebp
call fcn.0044a2d0
pop edi
pop ebp
add esp, 0x8c
ret 0x18
mov ecx, dword [esp + 0xa8]
mov edx, dword [ecx + 0x228]
cmp edx, edi
jne 0x440696
cmp dword [ecx + 0x188], edi
jne 0x440691
xor eax, eax
jmp 0x44069c
mov eax, dword [ecx + 0x78]
jmp 0x44069c
mov eax, dword [ecx + 0x1c0]
cmp edx, edi
push esi
jne 0x4406b6
cmp dword [ecx + 0x188], edi
jne 0x4406af
xor ecx, ecx
mov esi, ecx
jmp 0x4406bc
mov ecx, dword [ecx + 0x7c]
mov esi, ecx
jmp 0x4406bc
mov esi, dword [ecx + 0x1bc]
mov ecx, dword [esp + 0xa4]
shl eax, 0x10
xor edx, edx
div ecx
xor edx, edx
push ebx
mov ebx, dword [ebp + 0x1c0]
mov dword [esp + 0x54], ebx
mov ebx, dword [ebp + 0x1bc]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x94], ecx
mov ecx, ebp
mov dword [esp + 0x58], ebx
mov dword [esp + 0x8c], edi
mov dword [esp + 0x90], edi
mov dword [esp + 0x30], eax
mov eax, esi
mov esi, dword [esp + 0xac]
shl eax, 0x10
div esi
mov edx, dword [esp + 0xa4]
mov dword [esp + 0x50], edx
mov dword [esp + 0x80], edx
lea edx, [esp + 0x4c]
push edx
mov dword [esp + 0x64], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x50], eax
mov dword [esp + 0x80], eax
call fcn.00449330
test eax, eax
jne 0x44076f
pop ebx
pop esi
pop edi
mov eax, 3
pop ebp
add esp, 0x8c
ret 0x18
mov eax, dword [esp + 0x6c]
imul eax, dword [esp + 0x30]
mov edi, dword [esp + 0x70]
imul edi, dword [esp + 0x34]
mov ecx, ebp
mov dword [esp + 0x38], eax
call fcn.0043c970
mov ecx, dword [esp + 0xb0]
mov ebx, eax
call fcn.0043c970
test ebx, ebx
mov dword [esp + 0x40], eax
jne 0x4407b4
pop ebx
pop esi
pop edi
mov eax, 1
pop ebp
add esp, 0x8c
ret 0x18
test eax, eax
jne 0x4407ca
pop ebx
pop esi
pop edi
mov eax, 2
pop ebp
add esp, 0x8c
ret 0x18
mov eax, dword [ebp + 0x228]
cmp eax, 0x378
ja 0x440be1
je 0x440a5f
sub eax, 0x22b
je 0x44092b
sub eax, 0xa
jne 0x440d25
mov ecx, ebp
call fcn.00401350
mov ecx, dword [esp + 0xb0]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
call fcn.00401350
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
sar eax, 1
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x68]
mov ecx, esi
imul ecx, eax
lea ebx, [ebx + ecx*2]
lea ecx, [edx + eax]
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], ecx
jge 0x440d25
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x64]
lea edx, [esi + esi]
lea ebp, [eax + ecx]
mov esi, edi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], edx
mov dword [esp + 0x10], esi
mov ecx, dword [esp + 0x40]
mov eax, esi
shr eax, 0x10
imul eax, dword [esp + 0x24]
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xb4]
push eax
mov dword [esp + 0x1c], edx
call fcn.004012d0
mov edi, dword [esp + 0x64]
cmp edi, ebp
mov dword [esp + 0x1c], eax
jge 0x4408fd
mov eax, dword [esp + 0x38]
lea ecx, [ecx]
mov ecx, dword [esp + 0x1c]
cmp byte [edi + ecx], 0xff
je 0x4408ee
mov esi, dword [esp + 0x18]
movzx edx, word [ebx + edi*2]
mov ecx, eax
shr ecx, 0x10
movzx esi, word [esi + ecx*2]
mov ecx, esi
xor ecx, edx
shr ecx, 1
and ecx, 0x7bef
mov ebp, esi
and ebp, edx
add ecx, ebp
mov ebp, dword [esp + 0x20]
shr ecx, 4
and ecx, 0x841
add ecx, 0x801
shr ecx, 1
and ecx, 0x821
add ecx, 0x7bef
xor ecx, 0x7bef
sub edx, ecx
add edx, esi
or edx, ecx
mov word [ebx + edi*2], dx
mov edx, dword [esp + 0x30]
inc edi
add eax, edx
cmp edi, ebp
jl 0x440890
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
inc eax
add esi, edi
add ebx, edx
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
jl 0x440857
mov ebp, dword [esp + 0x3c]
jmp 0x440d25
mov ecx, ebp
call fcn.00401350
mov ecx, dword [esp + 0xb0]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
call fcn.00401350
cdq
sub eax, edx
mov edx, dword [esp + 0x78]
sar eax, 1
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
lea ecx, [edx + eax]
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
jge 0x440d25
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
lea ebp, [ecx + edx]
lea ecx, [esi + esi]
imul esi, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], ecx
lea ebx, [ebx + esi*2]
lea esp, [esp]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x40]
shr edx, 0x10
imul edx, dword [esp + 0x28]
lea ecx, [eax + edx*2]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0xb4]
push edx
call fcn.004012d0
mov edi, dword [esp + 0x64]
cmp edi, ebp
mov dword [esp + 0x2c], eax
jge 0x440a2d
mov eax, dword [esp + 0x38]
jmp 0x4409d0
mov ecx, dword [esp + 0x2c]
cmp byte [edi + ecx], 0xff
je 0x440a22
mov ecx, dword [esp + 0x24]
xor esi, esi
mov si, word [ebx + edi*2]
mov edx, eax
shr edx, 0x10
movzx ecx, word [ecx + edx*2]
mov ebp, ecx
mov edx, ecx
and edx, esi
xor ebp, esi
and ebp, 0x7bde
lea edx, [ebp + edx*2]
mov ebp, dword [esp + 0x1c]
shr edx, 5
and edx, 0x421
add edx, 0x3def
xor edx, 0x3def
sub ecx, edx
add ecx, esi
or ecx, edx
mov word [ebx + edi*2], cx
mov edx, dword [esp + 0x30]
inc edi
add eax, edx
cmp edi, ebp
jl 0x4409d0
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add edx, ecx
mov ecx, dword [esp + 0x18]
inc eax
add ebx, esi
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
jl 0x440990
mov ebp, dword [esp + 0x3c]
jmp 0x440d25
mov ecx, ebp
call fcn.00401350
mov ecx, dword [esp + 0xb0]
mov esi, eax
mov dword [esp + 0x44], esi
call fcn.00401350
mov edx, dword [esp + 0x78]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
lea ecx, [edx + eax]
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x48], ecx
jge 0x440d25
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
add ecx, edx
mov dword [esp + 0x24], ecx
mov ecx, esi
imul ecx, eax
add ecx, ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0x18], ecx
jmp 0x440ac0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xb4]
mov edx, dword [esp + 0x40]
mov eax, dword [eax + 8]
shr edi, 0x10
imul edi, dword [esp + 0x28]
add edi, edx
test eax, eax
je 0x440aed
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + ecx*4]
mov dword [esp + 0x1c], edx
jmp 0x440af5
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x64]
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jge 0x440ba7
mov ebp, dword [esp + 0x38]
mov edx, eax
mov eax, dword [esp + 0x18]
lea ecx, [eax + edx*2]
mov eax, dword [esp + 0x20]
lea edx, [edx + ecx + 2]
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
cmp byte [eax + ecx], 0xff
je 0x440b8d
movzx eax, byte [edx - 2]
mov ecx, ebp
shr ecx, 0x10
lea esi, [ecx + ecx*2]
movzx ecx, byte [esi + edi]
movzx ebx, byte [esi + edi + 1]
add ecx, eax
movzx eax, byte [edx - 1]
add ebx, eax
movzx eax, byte [esi + edi + 2]
movzx esi, byte [edx]
add eax, esi
cmp ecx, 0xff
mov dword [esp + 0x2c], ebx
jl 0x440b62
mov ecx, 0xff
cmp ebx, 0xff
jl 0x440b71
mov ebx, 0xff
jmp 0x440b75
mov bl, byte [esp + 0x2c]
cmp eax, 0xff
jl 0x440b81
mov eax, 0xff
mov byte [edx], al
mov eax, dword [esp + 0x20]
mov byte [edx - 2], cl
mov byte [edx - 1], bl
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x24]
inc eax
add edx, 3
add ebp, esi
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x440b20
mov ecx, dword [esp + 0x44]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x34]
add edi, ecx
mov ecx, dword [esp + 0x48]
inc eax
add esi, edx
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
jl 0x440ac0
mov ebp, dword [esp + 0x3c]
jmp 0x440d25
cmp eax, 0x22b8
jne 0x440d25
mov ecx, ebp
call fcn.00401350
mov ecx, dword [esp + 0xb0]
cdq
and edx, 3
add eax, edx
mov esi, eax
sar esi, 2
call fcn.00401350
mov ecx, dword [esp + 0x78]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
add ecx, eax
cmp eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
jge 0x440d25
mov edx, dword [esp + 0x74]
mov ecx, dword [esp + 0x64]
add ecx, edx
mov edx, edi
lea edi, [esi*4]
imul esi, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], edi
lea ebx, [ebx + esi*4]
mov esi, dword [esp + 0x40]
mov eax, edx
shr eax, 0x10
imul eax, dword [esp + 0x48]
lea eax, [esi + eax*4]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0xb4]
mov eax, dword [eax + 8]
test eax, eax
je 0x440c86
mov esi, dword [esp + 0x10]
mov eax, dword [eax + esi*4]
mov dword [esp + 0x24], eax
jmp 0x440c8e
mov dword [esp + 0x24], 0
mov edi, dword [esp + 0x64]
cmp edi, ecx
jge 0x440d00
mov eax, dword [esp + 0x38]
lea ebx, [ebx]
mov edx, dword [esp + 0x24]
cmp byte [edi + edx], 0xff
je 0x440cf1
mov edx, dword [esp + 0x44]
mov esi, dword [ebx + edi*4]
mov ecx, eax
shr ecx, 0x10
mov edx, dword [edx + ecx*4]
mov ecx, edx
xor ecx, esi
shr ecx, 1
and ecx, 0x7f7f7f7f
mov ebp, edx
and ebp, esi
add ecx, ebp
mov ebp, dword [esp + 0x3c]
shr ecx, 7
and ecx, 0x1010101
add ecx, 0x7f7f7f7f
xor ecx, 0x7f7f7f7f
sub edx, ecx
add edx, esi
or edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [ebx + edi*4], edx
mov esi, dword [esp + 0x30]
inc edi
add eax, esi
cmp edi, ecx
jl 0x440ca0
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x34]
add ebx, esi
mov esi, dword [esp + 0x18]
inc eax
add edx, edi
cmp eax, esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
jl 0x440c56
mov eax, dword [ebp + 0x228]
test eax, eax
mov esi, 0x4000
jne 0x440d3d
mov ecx, ebp
call fcn.00449910
jmp 0x440d57
cmp dword [ebp + 0x1ac], esi
jne 0x440d57
mov ebp, dword [ebp + 0x18c]
mov eax, dword [ebp]
push 0
push ebp
call dword [eax + 0x80]
mov eax, dword [esp + 0xb0]
mov ecx, dword [eax + 0x228]
test ecx, ecx
jne 0x440d7e
mov ecx, eax
call fcn.00449910
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0x8c
ret 0x18
cmp dword [eax + 0x1ac], esi
jne 0x440d9e
mov ecx, dword [esp + 0xb0]
mov eax, dword [ecx + 0x18c]
mov edx, dword [eax]
push 0
push eax
call dword [edx + 0x80]
pop ebx
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0x8c
ret 0x18