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

Disassembly:
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
test eax, eax
mov dword [esp + 0x10], ebp
jle 0x40bccd
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov edi, eax
movsx ecx, word [esi]
test ecx, ecx
je case.0x40af43.35
movsx eax, word [esi + 2]
and ecx, 0xff
or ebp, 1
dec ecx
cmp ecx, 0x3e
ja case.0x40af43.35
jmp dword [ecx*4 + 0x40bcd8]
add dword [ebx], eax
jmp case.0x40af43.35
add dword [ebx + 4], eax
jmp case.0x40af43.35
add dword [ebx + 8], eax
jmp case.0x40af43.35
add dword [ebx + 0xc], eax
jmp case.0x40af43.35
add dword [ebx + 0x10], eax
jmp case.0x40af43.35
add dword [ebx + 0x14], eax
jmp case.0x40af43.35
mov edx, dword [ebx + 4]
add edx, eax
mov dword [ebx + 4], edx
mov ecx, dword [ebx + 8]
add ecx, eax
mov dword [ebx + 8], ecx
mov edx, dword [ebx + 0xc]
add edx, eax
mov dword [ebx + 0xc], edx
mov ecx, dword [ebx + 0x10]
add ecx, eax
mov dword [ebx + 0x10], ecx
mov edx, dword [ebx + 0x14]
add edx, eax
mov dword [ebx + 0x14], edx
add dword [ebx + 0x18], eax
jmp case.0x40af43.35
add dword [ebx + 0x20], eax
jmp case.0x40af43.35
add dword [ebx + 0x24], eax
jmp case.0x40af43.35
add dword [ebx + 0x28], eax
jmp case.0x40af43.35
add dword [ebx + 0x2c], eax
jmp case.0x40af43.35
add dword [ebx + 0x30], eax
jmp case.0x40af43.35
add dword [ebx + 0x34], eax
jmp case.0x40af43.35
add dword [ebx + 0x38], eax
jmp case.0x40af43.35
add dword [ebx + 0x3c], eax
jmp case.0x40af43.35
lea ecx, [ebx + 0x20]
mov edx, 8
add dword [ecx], eax
add ecx, 4
dec edx
jne 0x40aff1
jmp case.0x40af43.35
add dword [ebx + 0x44], eax
jmp case.0x40af43.35
add dword [ebx + 0x48], eax
jmp case.0x40af43.35
add dword [ebx + 0x4c], eax
jmp case.0x40af43.35
add dword [ebx + 0x50], eax
jmp case.0x40af43.35
add dword [ebx + 0x54], eax
jmp case.0x40af43.35
add dword [ebx + 0x58], eax
jmp case.0x40af43.35
add dword [ebx + 0x5c], eax
jmp case.0x40af43.35
add dword [ebx + 0x60], eax
jmp case.0x40af43.35
lea ecx, [ebx + 0x44]
mov edx, 8
add dword [ecx], eax
add ecx, 4
dec edx
jne 0x40b046
jmp case.0x40af43.35
add dword [ebx + 0x64], eax
jmp case.0x40af43.35
add dword [ebx + 0x68], eax
jmp case.0x40af43.35
add dword [ebx + 0x6c], eax
jmp case.0x40af43.35
mov dword [ebx + 0x70], eax
jmp case.0x40af43.35
mov dword [ebx + 0x74], eax
jmp case.0x40af43.35
mov dword [ebx + 0x78], eax
jmp case.0x40af43.35
add dword [ebx + 0x9c], eax
jmp case.0x40af43.35
add dword [ebx + 0xa0], eax
jmp case.0x40af43.35
add dword [ebx + 0x80], eax
jmp case.0x40af43.35
add dword [ebx + 0x84], eax
jmp case.0x40af43.35
add dword [ebx + 0x88], eax
jmp case.0x40af43.35
add dword [ebx + 0x8c], eax
jmp case.0x40af43.35
add dword [ebx + 0x90], eax
jmp case.0x40af43.35
mov edx, dword [ebx + 0x80]
mov ecx, dword [ebx + 0x84]
add edx, eax
add ecx, eax
mov dword [ebx + 0x80], edx
mov edx, dword [ebx + 0x88]
add edx, eax
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x88], edx
mov edx, dword [ebx + 0x90]
add ecx, eax
add edx, eax
mov dword [ebx + 0x8c], ecx
mov dword [ebx + 0x90], edx
add dword [ebx + 0x94], eax
jmp case.0x40af43.35
mov dword [ebx + 0x98], eax
jmp case.0x40af43.35
add dword [ebx + 0xa8], eax
jmp case.0x40af43.35
add dword [ebx + 0xac], eax
jmp case.0x40af43.35
add dword [ebx + 0xb0], eax
jmp case.0x40af43.35
add dword [ebx + 0xb4], eax
jmp case.0x40af43.35
add dword [ebx + 0xb8], eax
jmp case.0x40af43.35
add dword [ebx + 0xbc], eax
jmp case.0x40af43.35
add dword [ebx + 0xc0], eax
jmp case.0x40af43.35
add dword [ebx + 0xc4], eax
jmp case.0x40af43.35
add dword [ebx + 0xc8], eax
jmp case.0x40af43.35
add dword [ebx + 0xcc], eax
jmp case.0x40af43.35
add dword [ebx + 0xd0], eax
jmp case.0x40af43.35
mov ecx, eax
mov byte [ebx + 0xd5], al
sar ecx, 8
mov byte [ebx + 0xd4], cl
jmp case.0x40af43.35
mov edx, eax
mov byte [ebx + 0xd7], al
sar edx, 8
mov byte [ebx + 0xd6], dl
jmp case.0x40af43.35
mov ecx, eax
mov byte [ebx + 0xd9], al
sar ecx, 8
mov byte [ebx + 0xd8], cl
jmp case.0x40af43.35
add dword [ebx + 0xda], eax
jmp case.0x40af43.35
add dword [ebx + 0xde], eax
add esi, 4
dec edi
jne 0x40af21
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x40bccd
mov eax, dword [ebx]
mov ebp, dword [esp + 0x18]
test eax, eax
je 0x40b24b
mov cl, byte [esp + 0x2c]
test cl, 1
je 0x40b21e
mov ecx, dword [esp + 0x28]
cmp ecx, 1
jge 0x40b20b
mov ecx, 1
push ecx
push eax
call fcn.004661e0
push 0
push 1
push ebp
push 0x5eea
jmp 0x40b242
test cl, 4
je 0x40b24b
mov ecx, dword [esp + 0x28]
cmp ecx, 1
jge 0x40b231
mov ecx, 1
push ecx
push eax
call fcn.004c3000
push 0
push 1
push ebp
push 0x5ddd
push eax
call fcn.004086b0
add esp, 0x1c
mov eax, dword [ebx + 0xc8]
test eax, eax
je 0x40b268
push 0
push 1
push ebp
push 0x5ddb
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 0xcc]
test eax, eax
je 0x40b285
push 0
push 1
push ebp
push 0x5ddd
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x40b2a5
push 0
push 0x80000001
push ebp
push 0x5ddc
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 4]
test eax, eax
je 0x40b2bf
push 0
push 1
push ebp
push 0x5dc6
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 8]
test eax, eax
je 0x40b2d9
push 0
push 1
push ebp
push 0x5dc7
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x40b2f3
push 0
push 1
push ebp
push 0x5dca
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x40b30d
push 0
push 1
push ebp
push 0x5dc8
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x40b327
push 0
push 1
push ebp
push 0x5dc9
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x40b341
push 0
push 1
push ebp
push 0x5dcb
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 0x98]
test eax, eax
je 0x40b35e
push 0
push 1
push ebp
push 0x5de1
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x40b378
push 0
push 1
push ebp
push 0x5ddf
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x40b392
push 0
push 1
push ebp
push 0x5de0
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 0x9c]
test eax, eax
je 0x40b3af
push 0
push 1
push ebp
push 0x5dd9
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 0xa0]
test eax, eax
je 0x40b3cc
push 0
push 1
push ebp
push 0x5dda
push eax
call fcn.004086b0
add esp, 0x14
lea edx, [ebx + 0x20]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x24], eax
je 0x40b4ad
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40b431
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x20], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40b45b
mov edi, 0x5731d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x5dea
call fcn.004680f0
add esp, 4
push eax
mov eax, dword [esp + 0x2c]
add eax, 0x5de1
push eax
call fcn.004680f0
add esp, 4
mov edi, ebp
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x573240
add ecx, ebp
push ecx
call dword [0x56c1a4]
mov ecx, dword [esp + 0x34]
push 0
push 0x80000000
push ebp
push 0
push ecx
call fcn.004086b0
add esp, 0x24
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
inc eax
add edx, 4
cmp eax, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
jle 0x40b3e3
lea edx, [ebx + 0x44]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x24], eax
je 0x40b5ab
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40b52f
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x20], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40b559
mov edi, 0x5731d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x5deb
call fcn.004680f0
add esp, 4
push eax
mov eax, dword [esp + 0x2c]
add eax, 0x5de1
push eax
call fcn.004680f0
add esp, 4
mov edi, ebp
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x573240
add ecx, ebp
push ecx
call dword [0x56c1a4]
mov ecx, dword [esp + 0x34]
push 0
push 0x80000000
push ebp
push 0
push ecx
call fcn.004086b0
add esp, 0x24
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
inc eax
add edx, 4
cmp eax, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
jle 0x40b4e1
lea edx, [ebx + 0xa8]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x24], eax
je 0x40b6a7
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x40b630
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x20], 1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40b65a
mov edi, 0x5731d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x28]
add eax, 0x5de1
push eax
call fcn.004680f0
add esp, 4
push eax
push 0x5f2c
call fcn.004680f0
add esp, 4
mov edi, ebp
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebp
push ecx
call dword [0x56c1a4]
mov ecx, dword [esp + 0x30]
push 0
push 0x80000002
push ebp
push 0
push ecx
call fcn.004086b0
add esp, 0x20
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
inc eax
add edx, 4
cmp eax, 8
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], edx
jle 0x40b5e2
mov eax, dword [ebx + 0x80]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40b74c
cmp byte [ebp], 0
je 0x40b702
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x5deb
call fcn.004680f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x30]
mov ecx, edx
push 0x80000000
and ecx, 3
push ebp
push 0x5df1
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004086b0
add esp, 0x18
mov eax, dword [ebx + 0x84]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40b7d4
cmp byte [ebp], 0
je 0x40b78a
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x5deb
call fcn.004680f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x30]
mov ecx, edx
push 0x80000000
and ecx, 3
push ebp
push 0x5df2
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004086b0
add esp, 0x18
mov eax, dword [ebx + 0x88]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40b85c
cmp byte [ebp], 0
je 0x40b812
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x5deb
call fcn.004680f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x30]
mov ecx, edx
push 0x80000000
and ecx, 3
push ebp
push 0x5df3
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004086b0
add esp, 0x18
mov eax, dword [ebx + 0x8c]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40b8e4
cmp byte [ebp], 0
je 0x40b89a
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x5deb
call fcn.004680f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x30]
mov ecx, edx
push 0x80000000
and ecx, 3
push ebp
push 0x5df4
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004086b0
add esp, 0x18
mov eax, dword [ebx + 0x90]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40b96c
cmp byte [ebp], 0
je 0x40b922
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x5deb
call fcn.004680f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x30]
mov ecx, edx
push 0x80000000
and ecx, 3
push ebp
push 0x5df5
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004086b0
add esp, 0x18
mov eax, dword [ebx + 0x94]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40b9f4
cmp byte [ebp], 0
je 0x40b9aa
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x5deb
call fcn.004680f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x30]
mov ecx, edx
push 0x80000000
and ecx, 3
push ebp
push 0x5df6
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004086b0
add esp, 0x18
xor eax, eax
mov al, byte [ebx + 0xd5]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40ba71
xor ecx, ecx
mov cl, byte [ebx + 0xd4]
mov dword [esp + 0x24], ecx
mov cl, byte [ebp]
test cl, cl
je 0x40ba45
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x28]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
mov eax, dword [esp + 0x28]
push eax
push 0x5f57
call fcn.004680f0
add esp, 4
mov edi, ebp
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebp
push ecx
call dword [0x56c1a4]
add esp, 0x10
xor eax, eax
mov al, byte [ebx + 0xd7]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40baee
xor ecx, ecx
mov cl, byte [ebx + 0xd6]
mov dword [esp + 0x24], ecx
mov cl, byte [ebp]
test cl, cl
je 0x40bac2
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x28]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
mov eax, dword [esp + 0x28]
push eax
push 0x5f58
call fcn.004680f0
add esp, 4
mov edi, ebp
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebp
push ecx
call dword [0x56c1a4]
add esp, 0x10
xor eax, eax
mov al, byte [ebx + 0xd9]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40bb6b
xor ecx, ecx
mov cl, byte [ebx + 0xd8]
mov dword [esp + 0x24], ecx
mov cl, byte [ebp]
test cl, cl
je 0x40bb3f
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x28]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
mov eax, dword [esp + 0x28]
push eax
push 0x5f58
call fcn.004680f0
add esp, 4
mov edi, ebp
or ecx, 0xffffffff
push eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebp
push ecx
call dword [0x56c1a4]
add esp, 0x10
mov eax, dword [ebx + 0xda]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40bbc0
cmp byte [ebp], 0
je 0x40bbad
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x28]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
push ebp
push 0x4c4b46
push eax
call fcn.004086b0
add esp, 0x14
mov eax, dword [ebx + 0xde]
test eax, eax
mov dword [esp + 0x28], eax
je 0x40bc15
cmp byte [ebp], 0
je 0x40bc02
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x28]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 0
push ebp
push 0x4c4b47
push eax
call fcn.004086b0
add esp, 0x14
mov ebx, dword [ebx + 0x70]
test ebx, ebx
je 0x40bcc3
cmp ebx, 2
jl 0x40bcc3
cmp ebx, 0x31
jg 0x40bcc3
mov edi, 0x5731f8
or ecx, 0xffffffff
xor eax, eax
push 0x5dcd
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004680f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add ebx, 0x5df9
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004680f0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret