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

Disassembly:
push 0xffffffffffffffff
push 0x1004de67
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c4
mov eax, dword [esp + 0x300]
mov ecx, dword [esp + 0x2fc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2e0]
push edi
or edi, 0xffffffff
mov dword [eax], edi
push esi
mov dword [esp + 0x38], edi
mov dword [ecx], edi
call fcn.00436d2d
mov eax, dword [esi + 0x5629c0]
add esp, 4
test eax, eax
je 0x421c27
fld qword [esp + 0x300]
fcomp qword [0x10052740]
fnstsw ax
test ah, 1
jne 0x421c27
fld qword [esp + 0x300]
fcomp qword [0x10052738]
fnstsw ax
test ah, 0x41
je 0x421c27
mov eax, dword [esp + 0x308]
test eax, eax
jl 0x421c27
cmp eax, 3
jg 0x421c27
lea ecx, [esp + 0xac]
call fcn.00449ca5
mov eax, dword [esp + 0x2f8]
lea edx, [esp + 0xac]
push 0
push edx
push 0x1005cc7c
push eax
mov dword [esp + 0x2ec], 0
call fcn.0041ad8d
add esp, 0x10
mov dword [esp + 0x4c], eax
test eax, eax
jne 0x420be7
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0xac]
mov dword [esp + 0x2dc], edi
call fcn.00449c99
mov eax, esi
jmp 0x421c2b
mov eax, dword [esi + 0x562a54]
mov ecx, dword [esp + 0x2f0]
mov ebx, dword [esp + 0x2ec]
mov edi, dword [esp + 0x2e8]
mov ebp, dword [esp + 0x2f4]
mov dword [esp + 0x14], ecx
test eax, eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
jne 0x420c1e
mov eax, dword [0x1004f524]
push 4
push 0x1005d8fc
push eax
call dword [0x1004f5fc]
add esp, 0xc
test eax, eax
jne 0x420e37
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x562a54]
test eax, eax
jne 0x420c4a
mov eax, dword [0x1004f524]
lea edx, [esp + 0x44]
lea ecx, [esp + 0x3c]
push edx
lea edx, [esp + 0xd4]
add eax, 4
push ecx
push edx
push eax
push esi
call fcn.004203ad
add esp, 0x14
test eax, eax
je 0x421c08
cmp dword [esp + 0x2f0], edi
jg 0x420c8d
push 0x1005d8e8
push esi
call fcn.0041b3cd
add esp, 8
jmp 0x421c08
mov eax, dword [esp + 0x2ec]
mov ecx, dword [esp + 0x2f4]
cmp ecx, eax
jg 0x420cb2
push 0x1005d8d4
push esi
call fcn.0041b3cd
add esp, 8
jmp 0x421c08
mov ecx, dword [esp + 0xd4]
cmp edi, ecx
jl 0x420cd0
push 0x1005d8bc
push esi
call fcn.0041b3cd
add esp, 8
jmp 0x421c08
cmp eax, dword [esp + 0xd8]
jl 0x420cec
push 0x1005d8a4
push esi
call fcn.0041b3cd
add esp, 8
jmp 0x421c08
mov edx, dword [esp + 0x2f0]
test edx, edx
jge 0x420d0a
push 0x1005d890
push esi
call fcn.0041b3cd
add esp, 8
jmp 0x421c08
mov edx, dword [esp + 0x2f4]
test edx, edx
jge 0x420d28
push 0x1005d87c
push esi
call fcn.0041b3cd
add esp, 8
jmp 0x421c08
test edi, edi
jge 0x420d34
mov dword [esp + 0x28], 0
test eax, eax
jge 0x420d3e
xor ebx, ebx
mov dword [esp + 0x2c], ebx
cmp dword [esp + 0x2f0], ecx
jle 0x420d4b
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0xd8]
cmp edx, eax
jle 0x420d58
mov ebp, eax
mov edx, dword [esp + 0x28]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x74]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x14]
sub ebp, ebx
sub eax, edx
mov ebx, ebp
mov dword [esp + 0x78], eax
mov dword [esp + 0x74], 0x28
lea ebp, [eax*4 + 3]
mov eax, ebx
and ebp, 0xfffffffc
mov dword [esp + 0x7c], ebx
imul eax, ebp
push eax
mov word [esp + 0x84], 1
mov word [esp + 0x86], 0x20
mov dword [esp + 0x88], 0
mov dword [esp + 0x54], ebp
call dword [0x1004f5a4]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x420dda
push 0x1005d86c
push esi
call fcn.0041b3cd
add esp, 8
jmp 0x421c08
xor eax, eax
test ebx, ebx
jle 0x4215ad
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x18]
mov dword [esp + 0x24], edi
lea edx, [ecx*4]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x2c]
mov ecx, ebp
lea esi, [eax + edx]
mov edx, dword [esp + 0x14]
imul esi, dword [esp + 0x44]
add esi, edx
mov edx, dword [esp + 0x3c]
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
add edi, ebp
cmp eax, ebx
mov dword [esp + 0x24], edi
jl 0x420dfb
jmp 0x421583
mov ebx, dword [esi + 0x18]
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], ebx
call fcn.0043004d
add esp, 4
test eax, eax
jne 0x421c08
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x420e60
xor ebx, ebx
mov dword [esp + 0x10], ebx
push ebx
call dword [0x1004f6c8]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x420e88
mov eax, dword [esi + 0x18]
push eax
push 0x1005d84c
push esi
call fcn.0041b3cd
add esp, 0xc
jmp 0x421c08
push 0xc
push edi
call dword [0x1004f044]
cmp eax, 0x20
je 0x420eb6
cmp eax, 0x10
je 0x420eb6
push 0x1005d828
push esi
call fcn.0041b3cd
add esp, 8
push edi
push ebx
call dword [0x1004f6c4]
jmp 0x421c08
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x420ed4
push 8
push edi
call dword [0x1004f044]
push 0xa
push edi
mov ebx, eax
call dword [0x1004f044]
jmp 0x420f15
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc0]
push ecx
push edx
call dword [0x1004f7a8]
cmp dword [esi + 0x24], 5
jne 0x420ef5
mov ebx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
jmp 0x420f15
mov ebx, dword [esp + 0xc8]
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0xcc]
mov ecx, dword [esp + 0xc4]
sub ebx, edx
sub eax, ecx
mov ecx, dword [esp + 0x2e8]
mov edx, dword [esp + 0x2f0]
cmp edx, ecx
jg 0x420f46
push 0x1005d8e8
push esi
call fcn.0041b3cd
mov eax, dword [esp + 0x18]
add esp, 8
push edi
push eax
call dword [0x1004f6c4]
jmp 0x421c08
mov edx, dword [esp + 0x2ec]
cmp dword [esp + 0x2f4], edx
jg 0x420f75
push 0x1005d8d4
push esi
call fcn.0041b3cd
mov ecx, dword [esp + 0x18]
add esp, 8
push edi
push ecx
call dword [0x1004f6c4]
jmp 0x421c08
cmp ecx, ebx
jl 0x420f8f
mov eax, dword [esp + 0x20]
test eax, eax
je 0x420f88
push 0x1005d810
jmp 0x420ffb
push 0x1005d7f8
jmp 0x420ffb
cmp edx, eax
jl 0x420fc1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x420fa2
push 0x1005d7e0
jmp 0x420fa7
push 0x1005d7c8
push esi
call fcn.0041b3cd
mov eax, dword [esp + 0x18]
add esp, 8
push edi
push eax
call dword [0x1004f6c4]
jmp 0x421c08
mov edx, dword [esp + 0x2f0]
test edx, edx
jge 0x420feb
push 0x1005d890
push esi
call fcn.0041b3cd
mov ecx, dword [esp + 0x18]
add esp, 8
push edi
push ecx
call dword [0x1004f6c4]
jmp 0x421c08
mov edx, dword [esp + 0x2f4]
test edx, edx
jge 0x421015
push 0x1005d87c
push esi
call fcn.0041b3cd
mov edx, dword [esp + 0x18]
add esp, 8
push edi
push edx
call dword [0x1004f6c4]
jmp 0x421c08
xor esi, esi
cmp ecx, esi
jge 0x42101f
mov dword [esp + 0x28], esi
cmp dword [esp + 0x2ec], esi
jge 0x42102c
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x2f0], ebx
jle 0x421039
mov dword [esp + 0x14], ebx
cmp edx, eax
jle 0x42103f
mov ebp, eax
mov esi, dword [esp + 0x14]
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x74]
mov edx, dword [esp + 0x2c]
mov ebx, ebp
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x28]
sub ebx, edx
sub esi, edi
mov ecx, ebx
mov eax, esi
mov dword [esp + 0x74], 0x28
mov dword [esp + 0x78], eax
mov dword [esp + 0x48], ebx
lea eax, [eax*4 + 3]
mov dword [esp + 0x7c], ebx
and al, 0xfc
mov word [esp + 0x80], 1
imul ecx, eax
push ecx
mov word [esp + 0x86], 0x20
mov dword [esp + 0x88], 0
mov dword [esp + 0x54], eax
call dword [0x1004f5a4]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4210e1
mov edx, dword [esp + 0x2e4]
push 0x1005d86c
push edx
call fcn.0041b3cd
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
push ecx
call dword [0x1004f6c4]
jmp 0x421c08
mov edx, dword [esp + 0x2e4]
mov eax, dword [edx + 0x24]
test eax, eax
je 0x421398
cmp eax, 1
je 0x421398
cmp eax, 3
je 0x421398
cmp eax, 2
je 0x42115e
cmp eax, 4
je 0x42115e
cmp eax, 5
jne 0x42156f
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ebp
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push eax
mov eax, dword [esp + 0x2f8]
mov ecx, dword [eax + 0x18]
push ecx
push eax
call fcn.0044327d
add esp, 0x1c
test eax, eax
jne 0x42156f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [0x1004f6c4]
jmp 0x421bfa
mov edi, dword [esp + 0x1c]
push edi
call dword [0x1004f040]
mov ebp, eax
test ebp, ebp
je 0x4213a9
push ebx
push esi
push edi
call dword [0x1004f04c]
mov ebx, eax
xor eax, eax
cmp ebx, eax
mov dword [esp + 0x24], ebx
jne 0x42119e
mov edx, dword [esp + 0x10]
push edi
push edx
call dword [0x1004f6c4]
mov eax, dword [esp + 0x18]
push eax
jmp 0x4213f5
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x5c]
push ecx
push edx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
call dword [0x1004f6d4]
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
sub eax, edx
mov edx, dword [esp + 0x5c]
push eax
sub ecx, edx
push ecx
push edi
call dword [0x1004f04c]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x421210
mov edx, dword [esp + 0x10]
push edi
push edx
call dword [0x1004f6c4]
mov eax, dword [esp + 0x18]
push eax
call dword [0x1004f5ac]
add esp, 4
push ebp
call dword [0x1004f03c]
push ebx
call dword [0x1004f094]
jmp 0x421c08
mov edi, dword [esp + 0x1c]
push edi
call dword [0x1004f040]
mov ebx, eax
test ebx, ebx
jne 0x42125b
mov ecx, dword [esp + 0x10]
push edi
push ecx
call dword [0x1004f6c4]
mov edx, dword [esp + 0x18]
push edx
call dword [0x1004f5ac]
add esp, 4
push ebp
call dword [0x1004f03c]
mov eax, dword [esp + 0x24]
mov esi, dword [0x1004f094]
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
jmp 0x421c08
mov edx, dword [esp + 0x24]
mov edi, dword [0x1004f038]
push edx
push ebp
call edi
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x14]
push eax
push ebx
call edi
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x2e4]
push 0
push ebx
push ecx
push edx
mov dword [esp + 0x40], eax
call fcn.0043052d
mov ecx, dword [esp + 0x30]
xor eax, eax
add esp, 0x10
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
lea eax, [esp + 0x54]
push eax
push ecx
call dword [0x1004f6d0]
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x2c]
sub edx, eax
mov eax, dword [esp + 0x54]
add edx, ecx
mov ecx, dword [esp + 0x5c]
push 0xcc0020
push edx
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x50]
add eax, edx
push eax
push ebx
push ecx
push esi
push 0
push 0
push ebp
call dword [0x1004f034]
mov edx, dword [esp + 0x40]
push edx
push ebp
call edi
mov eax, dword [esp + 0x30]
push eax
push ebx
call edi
mov eax, dword [esp + 0x7c]
mov ecx, 0xa
lea esi, [esp + 0x74]
lea edi, [esp + 0x11c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov edi, dword [esp + 0x24]
neg ecx
mov dword [esp + 0x124], ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x11c]
push 0
push edx
push ecx
push eax
push 0
push edi
push ebp
call dword [0x1004f050]
mov esi, eax
call dword [0x1004f164]
push ebp
mov ebp, dword [0x1004f03c]
mov dword [esp + 0x34], eax
call ebp
push edi
mov edi, dword [0x1004f094]
call edi
push ebx
call ebp
mov edx, dword [esp + 0x14]
push edx
call edi
test esi, esi
jne 0x42156b
mov eax, dword [esp + 0x30]
push eax
call dword [0x1004f120]
mov ecx, dword [esp + 0x2e4]
push 0x1005d7ac
push ecx
call fcn.0041b3cd
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
add esp, 8
push edx
push eax
call dword [0x1004f6c4]
jmp 0x421bfa
mov edi, dword [esp + 0x1c]
push edi
call dword [0x1004f040]
mov ebp, eax
test ebp, ebp
jne 0x4213cf
mov edx, dword [esp + 0x2e4]
push 0x1005d7b8
push edx
call fcn.0041b3cd
mov eax, dword [esp + 0x18]
add esp, 8
push edi
push eax
call dword [0x1004f6c4]
jmp 0x421bfa
push ebx
push esi
push edi
call dword [0x1004f04c]
test eax, eax
mov dword [esp + 0x40], eax
jne 0x42140a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [0x1004f6c4]
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x1004f5ac]
add esp, 4
push ebp
call dword [0x1004f03c]
jmp 0x421c08
push eax
push ebp
call dword [0x1004f038]
xor edx, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0xa4], edx
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x20]
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x6c], ecx
test edx, edx
mov dword [esp + 0x70], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
je 0x42146f
lea eax, [esp + 0x6c]
push eax
push edx
call dword [0x1004f6d0]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x9c]
push ecx
push edx
call dword [0x1004f6d4]
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x2e4]
mov edi, dword [edx + 0x24]
test edi, edi
jne 0x421497
mov edx, dword [esp + 0x2c]
push 0x40cc0020
add eax, edx
push eax
mov eax, dword [esp + 0x30]
add ecx, eax
push ecx
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x4214bf
mov edx, dword [esp + 0xa0]
mov edi, dword [esp + 0x2c]
sub eax, edx
mov edx, dword [esp + 0x1c]
add eax, edi
mov edi, dword [esp + 0x28]
push 0xcc0020
push eax
sub ecx, dword [esp + 0xa4]
add ecx, edi
push ecx
push edx
push ebx
push esi
push 0
push 0
push ebp
call dword [0x1004f034]
mov eax, dword [esp + 0x30]
push eax
push ebp
call dword [0x1004f038]
mov eax, dword [esp + 0x18]
mov ecx, 0xa
lea esi, [esp + 0x74]
lea edi, [esp + 0x144]
lea edx, [esp + 0x144]
push 0
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x44]
push edx
push eax
mov ecx, ebx
push ebx
push 0
neg ecx
push edi
push ebp
mov dword [esp + 0x168], ecx
call dword [0x1004f050]
mov esi, eax
call dword [0x1004f164]
push ebp
mov dword [esp + 0x34], eax
call dword [0x1004f03c]
push edi
call dword [0x1004f094]
test esi, esi
jne 0x42156f
mov ecx, dword [esp + 0x30]
push ecx
call dword [0x1004f120]
mov edx, dword [esp + 0x2e4]
push 0x1005d7ac
push edx
call fcn.0041b3cd
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
add esp, 8
push eax
push ecx
call dword [0x1004f6c4]
mov edx, dword [esp + 0x18]
push edx
jmp 0x421bff
mov ebx, dword [esp + 0x7c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call dword [0x1004f6c4]
mov ebp, dword [esp + 0x50]
test ebx, ebx
jle 0x4215ad
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x78]
test esi, esi
jle 0x4215a8
mov eax, edx
mov ecx, esi
mov edi, dword [eax]
add eax, 4
and edi, 0xffffff
dec ecx
mov dword [eax - 4], edi
jne 0x421597
add edx, ebp
dec ebx
jne 0x42158f
lea edx, [esp + 0xf8]
push edx
call dword [0x1004f118]
mov esi, dword [esp + 0x4c]
xor ebx, ebx
cmp esi, 4
mov dword [esp + 0x20], ebx
jge 0x42178d
mov ecx, 0x5a
xor eax, eax
lea edi, [esp + 0x16c]
dec esi
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2e4]
lea ecx, [esp + 0xac]
mov dword [esp + 0x170], ecx
mov dword [esp + 0x178], esi
mov ecx, 0xa
lea esi, [esp + 0x74]
lea edi, [esp + 0x180]
mov dword [esp + 0x16c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x174], ebx
mov dword [esp + 0x17c], ebx
mov edx, dword [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x2fc]
mov dword [esp + 0x1b0], eax
mov dword [esp + 0x1b4], ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov dword [esp + 0x1ac], edx
mov edx, dword [esp + 0x308]
not ecx
sub edi, ecx
mov dword [esp + 0x1bc], edx
lea edx, [esp + 0x1c0]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
mov dword [esp + 0x1a8], ebp
mov dword [esp + 0x2d0], ebx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x304]
mov ecx, eax
and ecx, 3
push 0x10
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x304]
mov dword [esp + 0x2cc], edx
mov dword [esp + 0x2c8], ecx
call fcn.00449cab
mov esi, eax
add esp, 4
mov dword [esp + 0x30], esi
cmp esi, ebx
mov byte [esp + 0x2dc], 1
je 0x4216d3
mov al, byte [esp + 0x3b]
push ebx
mov ecx, esi
mov byte [esi], al
call dword [0x1004f510]
jmp 0x4216d5
xor esi, esi
lea ecx, [esp + 0x16c]
mov byte [esp + 0x2dc], 0
push ecx
mov dword [esp + 0x2d0], esi
call fcn.00421c4d
mov eax, dword [esp + 0x2d0]
add esp, 4
cmp dword [eax + 8], ebx
jbe 0x421737
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x42170c
mov eax, dword [0x1004f524]
mov edx, dword [esp + 0x310]
mov ecx, dword [esp + 0x30c]
push edx
lea edx, [esp + 0x38]
push ecx
push edx
push 0x1005db94
push eax
call dword [0x1004f58c]
mov eax, dword [esp + 0x2e0]
add esp, 0x14
cmp eax, ebx
mov edi, eax
je 0x421bfa
lea esi, [eax + 4]
xor ebx, ebx
mov eax, dword [esi]
cmp eax, ebx
je 0x42177a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x421771
cmp al, 0xff
je 0x421771
dec al
push edi
mov byte [ecx], al
mov dword [esi], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.00449c6f
jmp 0x421bf7
push ecx
call fcn.00449c6f
add esp, 4
push edi
mov dword [esi], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
call fcn.00449c6f
jmp 0x421bf7
mov eax, dword [esp + 0x10c]
mov ecx, dword [esp + 0x2e4]
push esi
push eax
push 0x1005db70
push ecx
call fcn.0042e9ad
mov eax, dword [esp + 0x11c]
add esp, 0x10
cmp esi, eax
jae 0x4217b8
mov eax, esi
cmp eax, 0x40
mov dword [esp + 0x10], eax
jl 0x4217ca
mov eax, 0x40
mov dword [esp + 0x10], eax
mov edi, dword [0x1004f5a4]
lea esi, [eax*4]
push esi
mov dword [esp + 0x4c], eax
call edi
add esp, 4
cmp eax, ebx
mov dword [esp + 0x1c], eax
je 0x421bfa
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
lea edx, [eax + eax*8]
shl edx, 3
push edx
call edi
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
je 0x421b6d
push esi
call edi
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
je 0x421b6d
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
xor esi, esi
mov ebx, dword [esp + 0x2e4]
mov dword [eax], esi
mov eax, dword [esp + 0x4c]
mov dword [ecx], esi
mov dword [edx], esi
cdq
idiv edi
push edi
push 0x1005db5c
push ebx
mov dword [esp + 0x3c], eax
call fcn.0042e9ad
add esp, 0xc
cmp edi, esi
mov dword [ebx + 0x562e70], esi
mov dword [esp + 0x14], esi
jle 0x4219ef
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x44], ecx
lea ebp, [eax + 8]
mov eax, dword [esp + 0x20]
sub eax, ecx
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
dec eax
lea edx, [ecx + esi - 1]
mov ecx, dword [esp + 0x14]
cmp ecx, eax
mov dword [esp + 0x3c], edx
jne 0x4218a4
mov ecx, dword [esp + 0x4c]
dec ecx
mov dword [esp + 0x3c], ecx
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x2e4]
push edi
push esi
push edx
push 0x1005db38
push eax
call fcn.0042e9ad
mov ecx, dword [esp + 0x2f8]
lea ebx, [ebp - 8]
lea edx, [esp + 0xc0]
xor eax, eax
mov dword [ebx], ecx
mov dword [ebp - 4], edx
mov edx, dword [esp + 0x40]
mov dword [ebp], esi
mov dword [ebp + 4], edi
mov dword [ebp + 8], eax
lea edi, [ebp + 0xc]
mov ecx, 0xa
lea esi, [esp + 0x88]
mov dword [ebp + 0x15c], eax
mov eax, dword [esp + 0x64]
push 0x10
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x314]
mov dword [ebp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x38], ecx
mov ecx, dword [esp + 0x320]
mov dword [ebp + 0x3c], edx
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x48], ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x31c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x318]
mov dword [ebp + 0x150], ecx
mov dword [ebp + 0x154], edx
call fcn.00449cab
mov esi, eax
add esp, 0x18
mov dword [esp + 0x54], esi
test esi, esi
mov byte [esp + 0x2dc], 2
je 0x42198e
mov al, byte [esp + 0x3b]
push 0
mov ecx, esi
mov byte [esi], al
call dword [0x1004f510]
jmp 0x421990
xor esi, esi
mov ecx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
push 0
push 0
push ebx
push 0x1001a9c0
push 0
mov dword [ebp + 0x158], esi
push 0
mov byte [esp + 0x2f4], 0
mov dword [ecx + edi], ebx
call dword [0x1004f590]
add esp, 0x18
mov dword [edi], eax
test eax, eax
je 0x4219ef
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x10]
inc eax
add ebp, 0x168
add edi, 4
cmp eax, ecx
lea esi, [edx + 1]
mov dword [esp + 0x14], eax
mov dword [esp + 0x44], edi
jl 0x421882
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, edi
jne 0x421b12
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
dec edi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push 0
push ebp
push eax
call dword [0x1004f11c]
mov esi, eax
cmp esi, 0xffffffff
je 0x421aac
mov edi, dword [esp + 0x2e4]
push esi
push 0x1005db28
push edi
call fcn.0042e9ad
mov ecx, dword [ebx + esi*4]
add esp, 0xc
mov edx, dword [ecx + 0x160]
mov eax, dword [edx + 8]
test eax, eax
ja 0x421ac7
mov eax, dword [ebp + esi*4]
lea edi, [ebp + esi*4]
push eax
call dword [0x1004f194]
mov eax, dword [esp + 0x14]
mov dword [edi], 0
cmp esi, eax
jge 0x421a8e
mov ecx, dword [esp + 0x14]
mov edx, edi
mov edi, ebp
lea eax, [ebx + esi*4 + 4]
sub edi, ebx
sub ecx, esi
mov esi, dword [edi + eax]
add eax, 4
mov dword [edx], esi
mov esi, dword [eax - 4]
mov dword [eax - 8], esi
add edx, 4
dec ecx
jne 0x421a7a
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec eax
dec edx
test eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jne 0x421a0c
mov edi, eax
jmp 0x421b1a
mov ecx, dword [esp + 0x2e4]
push 0x1005db18
push ecx
call fcn.0041b3cd
mov edi, dword [esp + 0x18]
add esp, 8
jmp 0x421b1a
mov edx, dword [ebx + esi*4]
mov eax, dword [edx + 0x160]
mov eax, dword [eax + 4]
test eax, eax
jne 0x421adc
mov eax, dword [0x1004f524]
mov ecx, dword [esp + 0x310]
mov edx, dword [esp + 0x30c]
push ecx
lea ecx, [esp + 0x38]
push edx
push ecx
push 0x1005db94
push eax
call dword [0x1004f58c]
push esi
push 0x1005db04
push edi
call fcn.0042e9ad
mov edi, dword [esp + 0x30]
add esp, 0x20
jmp 0x421b1a
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
test edi, edi
jle 0x421b6d
mov ecx, ebp
mov eax, ebx
sub ecx, ebx
mov edx, edi
mov esi, 1
cmp dword [eax + ecx], 0
je 0x421b39
mov ebx, dword [eax]
mov dword [ebx + 0x164], esi
add eax, 4
dec edx
jne 0x421b2b
test edi, edi
jle 0x421b6d
mov ebx, edi
mov edi, dword [0x1004f170]
mov esi, ebp
mov eax, dword [esi]
test eax, eax
je 0x421b67
push 0xffffffffffffffff
push eax
call edi
mov edx, dword [esi]
push edx
call dword [0x1004f194]
mov dword [esi], 0
add esi, 4
dec ebx
jne 0x421b4d
mov eax, dword [esp + 0x1c]
mov esi, dword [0x1004f5ac]
push eax
call esi
mov edi, dword [esp + 0x28]
xor ebp, ebp
add esp, 4
cmp edi, ebp
je 0x421bec
mov eax, dword [esp + 0x48]
cmp eax, ebp
jle 0x421be6
add edi, 0x160
mov ebx, eax
mov esi, dword [edi]
cmp esi, ebp
je 0x421bd3
mov eax, dword [esi + 4]
cmp eax, ebp
je 0x421bc1
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x421bb8
cmp al, 0xff
je 0x421bb8
dec al
mov byte [ecx], al
jmp 0x421bc1
push ecx
call fcn.00449c6f
add esp, 4
push esi
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
call fcn.00449c6f
add esp, 4
add edi, 0x168
dec ebx
jne 0x421b97
mov edi, dword [esp + 0x24]
mov esi, dword [0x1004f5ac]
push edi
call esi
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x421bfa
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x18]
push ecx
call dword [0x1004f5ac]
add esp, 4
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0xac]
mov dword [esp + 0x2dc], 0xffffffff
call fcn.00449c99
mov eax, esi
jmp 0x421c2b
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2d0
ret