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

Disassembly:
sub esp, 0x130
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x14c]
or eax, 0xffffffff
push ebx
mov ebx, dword [esp + 0x148]
push ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x148]
push esi
mov esi, dword [esp + 0x140]
lea ebp, [ecx + eax]
push edi
xor edi, edi
lea eax, [ebp - 1]
mov dword [esp + 0x28], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x38], eax
test ebx, 0xe20f5a6f
je 0x4465d4
lea eax, [edi - 3]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
cmp esi, edi
je 0x4470ac
cmp ecx, edi
je 0x4470ac
cmp dword [esp + 0x158], edi
jne 0x4465f5
cmp edx, edi
jg 0x4470ac
cmp edx, edi
jge 0x446609
mov eax, 0xfffffff1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
movzx eax, word [esi + 0x1a]
movzx ecx, word [esi + 0x18]
movzx edx, word [esi + 0x1c]
mov dword [esp + 0x6c], eax
mov eax, 0x989680
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x20]
add ecx, esi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0xdc], edi
mov dword [esp + 0x10], eax
cmp eax, edi
jne 0x44664a
mov dword [esp + 0x10], 0x486098
cmp dword [esi], 0x50435245
je 0x446682
lea ecx, [esp + 0x114]
push ecx
push edi
lea edx, [esp + 0xf4]
push edx
push esi
call fcn.0043957c
mov esi, eax
add esp, 0x10
cmp esi, edi
jne 0x446682
mov eax, 0xfffffffc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
mov eax, dword [esi + 8]
movzx edx, word [esi + 0x1c]
movzx ecx, al
shr eax, 0x12
and eax, 1
mov dword [esp + 0x30], eax
movzx eax, word [esi + 0x1a]
imul edx, eax
movzx eax, word [esi + 0x18]
add edx, dword [esp + 0x144]
movzx edi, bl
add eax, edx
mov edx, dword [esp + 0x14c]
or edi, ecx
movzx ecx, byte [esi + 0xc]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x148]
mov dword [esp + 0xac], eax
add eax, edx
mov dword [esp + 0xb0], eax
mov dword [esp + 0x44], eax
shr ecx, 3
and ecx, 1
mov dword [esp + 0xe0], ecx
mov ecx, dword [esp + 0x150]
mov dword [esp + 0xcc], ecx
movzx eax, byte [esi + 8]
shr eax, 5
and eax, 1
mov dword [esp + 0x94], eax
mov ecx, dword [esi + 8]
shr ecx, 0xb
and ecx, 1
mov dword [esp + 0x8c], ecx
mov eax, dword [esi + 8]
shr eax, 0x19
and eax, 1
mov dword [esp + 0x90], eax
shr edi, 4
and edi, 1
mov eax, 0
test bl, 0x80
setne al
mov dword [esp + 0xe8], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x84], eax
mov eax, ebx
shr eax, 8
and eax, 1
mov dword [esp + 0x88], eax
mov eax, ebx
shr eax, 0xa
and eax, 1
mov dword [esp + 0x98], eax
mov eax, ebx
shr eax, 0x1c
and eax, 1
mov dword [esp + 0x9c], eax
test ebx, 0x8000000
je 0x446787
mov eax, 2
jmp 0x44678f
mov eax, ebx
shr eax, 0xf
and eax, 1
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x78], eax
add eax, 0x340
mov dword [esp + 0x7c], eax
xor edx, edx
mov eax, ebx
and eax, 0x1800000
mov dword [esp + 0xa0], edx
mov dword [esp + 0xd8], edx
je 0x4467eb
cmp eax, 0x800000
je 0x4467de
cmp eax, 0x1000000
je 0x446804
mov eax, 0xffffffe9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
mov dword [esp + 0xa4], 1
jmp 0x44680b
mov eax, dword [esi + 8]
test eax, 0x1800000
je 0x446804
shr eax, 0x17
and eax, 1
mov dword [esp + 0xa4], eax
jmp 0x44680b
mov dword [esp + 0xa4], edx
test ebx, 0x700000
jne 0x446818
mov eax, dword [esi + 8]
jmp 0x44681a
mov eax, ebx
and eax, 0x700000
cmp eax, 0x300000
ja 0x446871
je 0x44686a
cmp eax, edx
je 0x44683a
cmp eax, 0x100000
je 0x446863
cmp eax, 0x200000
jne 0x4467ce
mov eax, 0xa
cmp eax, 0xff
mov dword [esp + 0x60], edx
jle 0x446897
mov edx, eax
sar edx, 8
mov byte [esp + 0x74], dl
mov dword [esp + 0x64], 2
mov byte [esp + 0x75], al
xor edx, edx
jmp 0x4468a3
mov eax, 0xd
jmp 0x44683f
mov eax, 0xd0a
jmp 0x44683f
cmp eax, 0x400000
je 0x44688d
cmp eax, 0x500000
jne 0x4467ce
mov dword [esp + 0x60], 2
jmp 0x4468a3
mov dword [esp + 0x60], 1
jmp 0x4468a3
mov dword [esp + 0x64], 1
mov byte [esp + 0x74], al
cmp dword [esp + 0xc0], edx
je 0x4468c2
test byte [esi + 0xc], 1
je 0x4468c2
mov eax, 0xfffffff3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
cmp ecx, edx
je 0x446935
test ebx, 0x2000
jne 0x446935
mov eax, dword [esp + 0x14c]
mov ecx, dword [esp + 0x148]
push eax
push ecx
call fcn.00431d82
add esp, 8
test eax, eax
jl 0x4468fa
mov eax, 0xfffffff6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
mov eax, dword [esp + 0x150]
test eax, eax
jle 0x446935
cmp eax, dword [esp + 0x14c]
jge 0x446935
movzx eax, byte [ebp]
cmp eax, 0x7f
jle 0x446935
and eax, 0xc0
je 0x446935
cmp eax, 0xc0
je 0x446935
mov eax, 0xfffffff5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
mov eax, dword [esi + 8]
and eax, 7
mov dword [esp + 0xe4], eax
mov eax, 0x55555556
imul dword [esp + 0x15c]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
movzx eax, word [esi + 0x12]
mov dword [esp + 0x18], edx
test ax, ax
jbe 0x4469b5
movzx ecx, ax
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jl 0x4469b5
lea eax, [ecx + ecx*2 + 3]
lea ecx, [eax*4]
push ecx
mov dword [esp + 0x1c], eax
call dword [0x491670]
add esp, 4
mov dword [esp + 0x54], eax
test eax, eax
jne 0x4469ab
mov eax, 0xfffffffa
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
mov dword [esp + 0x28], 1
jmp 0x4469c0
mov edx, dword [esp + 0x158]
mov dword [esp + 0x54], edx
mov ecx, dword [esp + 0x18]
lea edx, [ecx + ecx]
mov eax, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x80], 0
mov dword [esp + 0xc8], 0xffffffff
movzx eax, word [esi + 0x10]
lea eax, [eax + eax + 2]
cmp eax, dword [esp + 0x15c]
mov dword [esp + 0x18], eax
jle 0x446a0e
mov eax, ecx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x54]
test edx, edx
je 0x446a43
lea ecx, [edx + ecx*4]
cdq
sub eax, edx
sar eax, 1
mov edx, 1
sub edx, eax
lea eax, [ecx + edx*4]
sub ecx, 4
cmp ecx, eax
jb 0x446a43
lea esp, [esp]
mov dword [ecx], 0xffffffff
sub ecx, 4
cmp ecx, eax
jae 0x446a36
test edi, edi
jne 0x446a77
test byte [esi + 0xc], 2
je 0x446a77
movzx eax, word [esi + 0x14]
movzx ecx, al
mov dword [esp + 0x1c], ecx
test eax, 0x100
je 0x446b36
mov eax, dword [esp + 0x78]
movzx ecx, byte [eax + ecx]
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], ecx
test byte [esi + 0xc], 4
je 0x446aa2
movzx eax, word [esi + 0x16]
mov edx, dword [esp + 0x10]
movzx ecx, al
shr eax, 8
and eax, 1
mov dword [esp + 0x3c], eax
movzx eax, byte [edx + ecx + 0x100]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x34], eax
and ebx, 0x4000000
mov dword [esp + 0x40], ebx
jmp 0x446ab6
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x44]
mov dword [esp + 0x10], ebx
test edi, edi
je 0x446add
mov ecx, dword [esp + 0x18]
lea ecx, [edi + ecx*4]
cmp edi, ecx
jae 0x446add
sub ecx, edi
dec ecx
shr ecx, 2
inc ecx
or eax, 0xffffffff
rep stosd dword es:[edi], eax
cmp dword [esp + 0x30], 0
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x64]
je 0x446bd6
cmp dword [esp + 0x14], 0
mov edi, ebp
je 0x446b7b
cmp ebp, eax
jae 0x446bd4
mov edx, dword [esp + 0x60]
test edx, edx
je 0x446b43
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x68]
push ecx
push eax
push edx
push edi
call fcn.0043200a
mov ecx, dword [esp + 0x78]
add esp, 0x14
test eax, eax
jne 0x446bd4
mov eax, dword [esp + 0xb0]
jmp 0x446b61
mov dword [esp + 0x20], 0
jmp 0x446a77
mov edx, eax
sub edx, ecx
cmp edi, edx
ja 0x446b61
mov dl, byte [edi]
cmp dl, byte [esp + 0x74]
jne 0x446b61
cmp ecx, 1
je 0x446bd4
mov dl, byte [edi + 1]
cmp dl, byte [esp + 0x75]
je 0x446bd4
inc edi
cmp edi, ebx
jae 0x446b75
mov dl, byte [edi]
and dl, 0xc0
cmp dl, 0x80
jne 0x446b75
inc edi
cmp edi, ebx
jb 0x446b66
cmp edi, eax
jb 0x446b04
jmp 0x446bd4
cmp ebp, eax
jae 0x446bd4
lea esp, [esp]
mov edx, dword [esp + 0x60]
test edx, edx
je 0x446bb1
push 0
lea ecx, [esp + 0x68]
push ecx
push eax
push edx
push edi
call fcn.0043200a
mov ecx, dword [esp + 0x78]
add esp, 0x14
test eax, eax
jne 0x446bd4
mov eax, dword [esp + 0xb0]
jmp 0x446bcf
mov edx, eax
sub edx, ecx
cmp edi, edx
ja 0x446bcf
mov dl, byte [esp + 0x74]
cmp byte [edi], dl
jne 0x446bcf
cmp ecx, 1
je 0x446bd4
mov dl, byte [esp + 0x75]
cmp byte [edi + 1], dl
je 0x446bd4
inc edi
cmp edi, eax
jb 0x446b86
mov ebx, edi
cmp dword [esp + 0x40], 0
mov edi, dword [esp + 0x1c]
jne 0x446d76
test edi, edi
jl 0x446c3c
cmp dword [esp + 0x20], 0
je 0x446c16
cmp ebp, ebx
jae 0x446d76
movzx eax, byte [ebp]
mov ecx, dword [esp + 0x78]
movzx edx, byte [eax + ecx]
cmp edx, edi
je 0x446d76
inc ebp
cmp ebp, ebx
jb 0x446bf8
jmp 0x446d76
cmp ebp, ebx
jae 0x446d76
jmp 0x446c26
movzx eax, byte [ebp]
cmp eax, edi
je 0x446d76
inc ebp
cmp ebp, ebx
jb 0x446c26
jmp 0x446d76
cmp dword [esp + 0xe0], 0
je 0x446d76
mov edx, dword [esp + 0x150]
mov eax, dword [esp + 0xac]
add edx, eax
cmp ebp, edx
jbe 0x446d76
cmp dword [esp + 0x14], 0
je 0x446ced
cmp ebp, ebx
jae 0x446d4b
jmp 0x446c7e
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x60]
test edx, edx
je 0x446cad
cmp ebp, eax
jbe 0x446cd2
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x68]
push ecx
push eax
push edx
push ebp
call int.00431eb9
add esp, 0x14
test eax, eax
jne 0x446d4b
mov ecx, dword [esp + 0x64]
jmp 0x446cd2
lea edx, [ecx + eax]
cmp ebp, edx
jb 0x446cd2
mov eax, ebp
sub eax, ecx
mov dl, byte [eax]
cmp dl, byte [esp + 0x74]
jne 0x446cd2
cmp ecx, 1
je 0x446d4b
mov dl, byte [esp + 0x75]
cmp byte [eax + 1], dl
je 0x446d4b
inc ebp
cmp ebp, ebx
jae 0x446d4b
mov al, byte [ebp]
and al, 0xc0
cmp al, 0x80
jne 0x446ce7
inc ebp
cmp ebp, ebx
jb 0x446cd7
jmp 0x446d4b
cmp ebp, ebx
jb 0x446c77
jmp 0x446d4b
cmp ebp, ebx
jae 0x446d4b
jmp 0x446cfd
mov eax, dword [esp + 0xac]
mov edx, dword [esp + 0x60]
test edx, edx
je 0x446d25
cmp ebp, eax
jbe 0x446d46
push 0
lea ecx, [esp + 0x68]
push ecx
push eax
push edx
push ebp
call int.00431eb9
add esp, 0x14
test eax, eax
jne 0x446d4b
mov ecx, dword [esp + 0x64]
jmp 0x446d46
lea edx, [ecx + eax]
cmp ebp, edx
jb 0x446d46
mov eax, ebp
sub eax, ecx
mov dl, byte [eax]
cmp dl, byte [esp + 0x74]
jne 0x446d46
cmp ecx, 1
je 0x446d4b
mov dl, byte [esp + 0x75]
cmp byte [eax + 1], dl
je 0x446d4b
inc ebp
cmp ebp, ebx
jb 0x446cf6
cmp byte [ebp - 1], 0xd
jne 0x446d76
mov eax, dword [esp + 0x60]
cmp eax, 1
je 0x446d5f
cmp eax, 2
jne 0x446d76
cmp ebp, ebx
jae 0x446d76
cmp byte [ebp], 0xa
jne 0x446d76
inc ebp
jmp 0x446d76
cmp dword [esp + 0x40], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x44], eax
jne 0x446e2e
cmp dword [esp + 0xc0], 0
jne 0x446e2e
mov edx, dword [esp + 0x2c]
test edx, edx
jl 0x446e2e
mov ebx, eax
sub eax, ebp
cmp eax, 0x3e8
jge 0x446e2e
xor eax, eax
test edi, edi
setge al
add eax, ebp
cmp eax, dword [esp + 0x38]
jbe 0x446e2e
cmp dword [esp + 0x3c], 0
je 0x446e13
cmp eax, ebx
jae case.0x446ea2.999
movzx ecx, byte [eax]
inc eax
cmp ecx, edx
je 0x446e25
cmp ecx, dword [esp + 0x34]
je 0x446e25
cmp eax, ebx
jb 0x446dcc
xor ebx, ebx
cmp dword [esp + 0x28], 0
je 0x446df5
mov edx, dword [esp + 0x54]
push edx
call dword [0x491674]
add esp, 4
test ebx, ebx
je 0x447061
cmp ebx, 0xfffffff4
je 0x447061
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
cmp eax, ebx
jae case.0x446ea2.999
movzx ecx, byte [eax]
inc eax
cmp ecx, edx
je 0x446e25
cmp eax, ebx
jb 0x446e17
jmp case.0x446ea2.999
dec eax
cmp eax, ebx
jae case.0x446ea2.999
mov dword [esp + 0x38], eax
mov edx, dword [esp + 0xe4]
mov ecx, dword [esp + 0xa8]
push 0
push 0
push 0
push edx
lea eax, [esp + 0x58]
push eax
push 2
push ebp
push ecx
push ebp
mov dword [esp + 0xd8], ebp
mov dword [esp + 0xe0], ebp
mov dword [esp + 0x6c], 0
call fcn.00439699
add esp, 0x24
cmp dword [esp + 0xa0], 0
mov ebx, eax
je 0x446e89
cmp dword [esp + 0x24], 0
jne 0x446e89
mov edx, dword [esp + 0xbc]
mov dword [esp + 0x24], edx
test ebx, ebx
jg case.default.0x446ea2
je case.0x446ea2.998
lea eax, [ebx + 0x3e7]
cmp eax, 3
ja case.default.0x446ea2
jmp dword [eax*4 + 0x4470be]
mov edi, dword [esp + 0xb4]
jmp 0x446ed5
cmp dword [esp + 0x14], 0
lea edi, [ebp + 1]
je 0x446ed5
mov eax, dword [esp + 0x10]
cmp edi, eax
jae 0x446ed5
mov edi, edi
mov cl, byte [edi]
and cl, 0xc0
cmp cl, 0x80
jne 0x446ed5
inc edi
cmp edi, eax
jb 0x446ec6
mov ecx, dword [esp + 0x60]
xor ebx, ebx
cmp dword [esp + 0x30], ebx
je 0x446f43
test ecx, ecx
je 0x446f13
mov eax, dword [esp + 0xb0]
cmp ebp, eax
jae 0x446f43
mov edx, dword [esp + 0x14]
push edx
lea edx, [esp + 0x68]
push edx
push eax
push ecx
push ebp
call fcn.0043200a
add esp, 0x14
test eax, eax
jne 0x446de0
mov ecx, dword [esp + 0x60]
jmp 0x446f43
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0x64]
sub edx, eax
cmp ebp, edx
ja 0x446f43
mov dl, byte [esp + 0x74]
cmp byte [ebp], dl
jne 0x446f43
cmp eax, 1
je 0x446de0
mov al, byte [esp + 0x75]
cmp byte [ebp + 1], al
je 0x446de0
cmp dword [esp + 0xe8], 0
mov ebp, edi
jne 0x446de0
mov eax, dword [esp + 0x10]
cmp edi, eax
ja 0x446de0
cmp byte [edi - 1], 0xd
jne 0x446ab6
cmp edi, eax
jae 0x446ab6
cmp byte [edi], 0xa
jne 0x446ab6
test byte [esi + 0xc], 0x20
jne 0x446ab6
cmp ecx, 1
je 0x446f9c
mov eax, 2
cmp ecx, eax
je 0x446f9c
cmp dword [esp + 0x64], eax
jne 0x446ab6
lea ebp, [edi + 1]
jmp 0x446ab6
cmp ebx, 1
jne 0x446de0
cmp dword [esp + 0x28], 0
mov esi, dword [esp + 0x15c]
je 0x447005
cmp esi, 4
jl 0x446fe3
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x158]
lea ecx, [esi*4 - 8]
push ecx
add edx, 8
push edx
add eax, 8
push eax
call fcn.00410f70
add esp, 0xc
cmp dword [esp + 0xc4], esi
jle 0x446ff7
mov dword [esp + 0x80], 1
mov ecx, dword [esp + 0x54]
push ecx
call dword [0x491674]
add esp, 4
cmp dword [esp + 0x80], 0
je 0x447013
xor eax, eax
jmp 0x44701f
mov eax, dword [esp + 0xc4]
cdq
sub eax, edx
sar eax, 1
cmp esi, 2
jge 0x447031
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
mov ecx, dword [esp + 0xac]
mov esi, dword [esp + 0xb4]
mov edx, dword [esp + 0x158]
sub esi, ecx
mov dword [edx], esi
mov esi, dword [esp + 0xb8]
sub esi, ecx
mov dword [edx + 4], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
mov eax, dword [esp + 0x24]
test eax, eax
je 0x44709e
cmp dword [esp + 0x15c], 1
jle 0x44708e
mov edx, dword [esp + 0x148]
mov ecx, dword [esp + 0x158]
sub eax, edx
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
sub eax, edx
mov dword [ecx + 4], eax
mov eax, 0xfffffff4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret
pop edi
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x130
ret