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

Disassembly:
push ebp
push edi
mov eax, 0x193c
push esi
push ebx
call fcn.00445d50
mov edx, 0x145
sub esp, eax
mov eax, dword [esp + 0x1968]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x1968]
mov ecx, dword [eax + 8]
mov eax, 1
shl eax, cl
sub eax, 0x10
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x1968]
cmp dword [eax + 4], 0xa
mov eax, 0x96
cmovg eax, edx
cmp dword [esp + 0x1954], 0x7f
mov dword [esp + 0x8c], eax
jbe 0x40b9c9
mov ecx, dword [esp + 0x1958]
mov eax, dword [esp + 0x1954]
mov edi, dword [esp + 0x1954]
lea eax, [eax + ecx - 0x7f]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0x1974]
mov dword [eax], 0
mov dword [eax + 0xc], 0
mov eax, dword [esp + 0x1968]
mov dword [esp], edi
lea ecx, [eax + 0x40]
lea eax, [esp + 0x21c]
mov edx, eax
mov dword [esp + 0x90], eax
mov edi, eax
mov eax, dword [esp + 0x1950]
call fcn.00409990
mov eax, dword [esp + 0x1960]
mov ecx, dword [esp + 0x195c]
mov edx, dword [esp + 0x1958]
mov dword [esp], eax
mov eax, edi
call fcn.00409860
mov dword [esp + 0x218], 0
mov eax, dword [esp + 0x1968]
mov dword [esp + 0x74], 0
add eax, 0x48
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x94]
add eax, dword [esp + 0x1958]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x1958]
mov edx, 0x10
mov esi, dword [esp + 0x70]
add eax, ecx
cmp esi, eax
mov edi, eax
mov dword [esp + 0x5c], eax
cmovbe edi, esi
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x1954]
sub edi, ecx
mov dword [esp + 0x44], edi
mov edi, eax
and eax, dword [esp + 0x1960]
lea ebx, [edi - 1]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x1968]
cmp dword [eax + 4], 0xb
mov eax, 0x40
cmovne eax, edx
mov edx, edi
sub edx, eax
cmp edi, eax
mov eax, 0
cmovae eax, edx
mov ecx, eax
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x58]
cmp ebx, ecx
jbe 0x40ad02
mov edx, dword [esp + 0x4c]
add eax, dword [esp + 0x195c]
test edx, edx
je 0x40ba60
mov ecx, eax
mov dword [esp + 0x54], eax
movzx eax, byte [eax]
lea esi, [esp + 0xd30]
mov dword [esp + 0x40], 1
mov ebp, 1
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x50], al
mov eax, dword [esp + 0x44]
add eax, ecx
mov edi, eax
lea eax, [eax - 4]
mov dword [esp + 0x60], eax
jmp 0x40ac58
sub dword [esp + 0x3c], 1
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x3c]
cmp eax, ecx
jbe 0x40ad1c
cmp dword [esp + 0x40], 2
ja 0x40ad1c
add ebp, 1
cmp ebp, dword [esp + 0x4c]
ja 0x40ad1c
mov eax, dword [esp + 0x3c]
and eax, dword [esp + 0x1960]
mov ecx, dword [esp + 0x195c]
movzx edx, byte [esp + 0x50]
add ecx, eax
cmp byte [ecx], dl
jne 0x40ac2b
mov ebx, dword [esp + 0x195c]
mov edx, dword [esp + 0x58]
movzx eax, byte [ebx + eax + 1]
cmp byte [ebx + edx + 1], al
jne 0x40ac2b
mov eax, dword [esp + 0x54]
cmp dword [esp + 0x60], eax
jb 0x40ba81
mov ebx, dword [ecx]
cmp dword [eax], ebx
jne 0x40ba81
xor edx, edx
jmp 0x40acae
mov ebx, dword [ecx + edx]
cmp dword [eax], ebx
jne 0x40acba
add eax, 4
add edx, 4
cmp eax, dword [esp + 0x60]
jbe 0x40aca7
cmp edi, eax
jbe 0x40acec
movzx ebx, byte [eax]
cmp byte [ecx + edx], bl
je 0x40acd8
jmp 0x40acec
movzx ebx, byte [eax]
cmp byte [ecx + edx], bl
jne 0x40ace2
add eax, 1
add edx, 1
cmp edi, eax
ja 0x40acd0
cmp edx, dword [esp + 0x40]
jbe 0x40ac2b
mov eax, edx
mov dword [esi], ebp
mov dword [esp + 0x40], edx
shl eax, 5
add esi, 8
mov dword [esi - 4], eax
jmp 0x40ac2b
add eax, dword [esp + 0x195c]
lea esi, [esp + 0xd30]
mov dword [esp + 0x40], 1
mov dword [esp + 0x54], eax
mov edi, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
cmp edi, ecx
jbe 0x40af2b
mov eax, pe_nt_image_headers32
cmp edi, 0x80
mov ecx, eax
mov eax, dword [esp + 0x1970]
cmovbe ecx, edi
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x1970]
mov eax, dword [eax + 0x34]
mov edx, dword [ecx + 0x2c]
mov ebx, ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x54]
imul eax, dword [eax], 0x1e35a7bd
shr eax, 0xf
lea edx, [edx + eax*4]
mov eax, dword [ebx + 0x28]
mov ebp, dword [edx]
and eax, ecx
add eax, eax
mov dword [esp + 0x84], eax
add eax, 1
cmp edi, 0x7f
mov dword [esp + 0x88], eax
jbe 0x40b800
mov eax, ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x1960]
sub eax, ebp
mov dword [esp + 0x64], eax
and ecx, ebp
cmp dword [esp + 0x4c], eax
mov dword [esp + 0x3c], ecx
jb 0x40b962
test eax, eax
je 0x40b962
mov dword [esp + 0x50], esi
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x48], 0x40
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x44]
cmp ecx, eax
mov esi, eax
mov eax, dword [esp + 0x3c]
cmovbe esi, ecx
sub edi, esi
lea edx, [esi + eax]
add edx, dword [esp + 0x195c]
mov eax, dword [esp + 0x58]
lea ecx, [eax + esi]
add ecx, dword [esp + 0x195c]
add edi, edx
lea ebx, [edi - 4]
cmp edx, ebx
ja 0x40b830
mov eax, dword [edx]
cmp dword [ecx], eax
mov eax, 0
jne 0x40ae3a
mov dword [esp + 0x78], esi
jmp 0x40ae2c
mov esi, dword [ecx + eax]
cmp dword [edx], esi
jne 0x40ae36
add edx, 4
add eax, 4
cmp edx, ebx
jbe 0x40ae25
mov esi, dword [esp + 0x78]
cmp edi, edx
jbe 0x40ae62
movzx ebx, byte [ecx + eax]
cmp byte [edx], bl
jne 0x40ae62
mov ebx, eax
sub ebx, edx
sub edx, eax
add ebx, edi
mov edi, ebx
jmp 0x40ae5b
movzx ebx, byte [edx + eax]
cmp byte [ecx + eax], bl
jne 0x40ae62
add eax, 1
cmp eax, edi
jne 0x40ae52
mov ecx, dword [esp + 0x50]
add eax, esi
test ecx, ecx
je 0x40ae8b
cmp eax, dword [esp + 0x40]
jbe 0x40ae8b
mov edi, dword [esp + 0x64]
mov edx, eax
mov dword [esp + 0x40], eax
shl edx, 5
mov dword [ecx + 4], edx
mov dword [ecx], edi
lea edi, [ecx + 8]
mov dword [esp + 0x50], edi
cmp dword [esp + 0x7c], eax
jbe 0x40b837
mov edx, dword [esp + 0x3c]
add edx, dword [esp + 0x195c]
mov edi, dword [esp + 0x54]
movzx ecx, byte [edx + eax]
cmp byte [edi + eax], cl
jbe 0x40b5f0
cmp dword [esp + 0x44], 0x7f
jbe 0x40aec6
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x84]
mov dword [ecx + edi*4], ebp
mov ecx, dword [esp + 0x1970]
mov edi, dword [esp + 0x60]
mov dword [esp + 0x68], eax
and ebp, dword [ecx + 0x28]
lea ecx, [ebp + ebp + 1]
mov ebp, dword [edi + ecx*4]
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x1960]
sub dword [esp + 0x48], 1
mov ecx, dword [esp + 0x48]
and eax, ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x5c]
sub eax, ebp
sete dl
cmp eax, dword [esp + 0x4c]
mov dword [esp + 0x64], eax
seta al
or dl, al
jne 0x40af1c
test ecx, ecx
jne 0x40add6
cmp dword [esp + 0x44], 0x7f
ja 0x40b966
mov esi, dword [esp + 0x50]
lea eax, [esp + 0xa0]
lea edi, [esp + 0x138]
mov dword [eax], 0xfffffff
add eax, 4
cmp eax, edi
jne 0x40af32
mov ebx, dword [esp + 0x40]
mov eax, 4
mov edi, dword [esp + 0x44]
add ebx, 1
mov dword [esp + 0xc], edi
cmp ebx, 4
cmovb ebx, eax
lea eax, [esp + 0xa0]
mov dword [esp + 8], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x9c]
mov dword [esp], eax
call fcn.0041b580
test eax, eax
je 0x40b003
cmp edi, 0x25
mov ecx, 0x25
cmovbe ecx, edi
cmp ebx, ecx
ja 0x40b003
mov eax, dword [esp + 0x94]
add eax, dword [esp + 0x5c]
mov edx, ebx
shl edx, 5
mov dword [esp + 0x3c], eax
lea esi, [esi]
mov eax, dword [esp + ebx*4 + 0xa0]
cmp eax, 0xffffffe
ja 0x40aff9
mov edi, dword [esp + 0x70]
cmp dword [esp + 0x3c], edi
mov ebp, edi
cmovbe ebp, dword [esp + 0x3c]
mov edi, eax
shr edi, 5
lea edi, [ebp + edi + 1]
mov ebp, dword [esp + 0x1968]
cmp edi, dword [ebp + 0x44]
ja 0x40aff9
and eax, 0x1f
mov dword [esi], edi
mov edi, 0
cmp eax, ebx
cmove eax, edi
add esi, 8
or eax, edx
mov dword [esi - 4], eax
add ebx, 1
add edx, 0x20
cmp ecx, ebx
jae 0x40afb0
lea eax, [esp + 0xd30]
sub esi, eax
sar esi, 3
test esi, esi
jne 0x40b714
mov eax, dword [esp + 0x1974]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x1958]
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], eax
lea eax, [esp + 0x138]
mov ecx, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xd30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x196c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1968]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1960]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x195c]
mov dword [esp], eax
mov eax, dword [esp + 0x1954]
call fcn.00409cb0
cmp eax, 0x3fff
mov dword [esp + 0x78], eax
jbe 0x40b571
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x98]
add eax, ecx
cmp eax, edi
cmova eax, edi
mov edi, eax
mov dword [esp + 0x7c], eax
mov eax, ecx
lea ecx, [ecx + 1]
mov esi, ecx
mov dword [esp + 0x5c], ecx
mov ecx, eax
add eax, 0x40
mov dword [esp + 0x58], esi
cmp eax, edi
ja 0x40b303
mov eax, edi
sub eax, 0x3f
mov edi, eax
mov dword [esp + 0x58], eax
mov eax, ecx
add eax, 0x201
cmp edi, eax
jb 0x40b303
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x5c], ecx
jae 0x40b303
mov eax, dword [esp + 0x1970]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x1970]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1970]
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x84]
mov edx, dword [eax + 0x28]
lea eax, [edx - 0xf]
and edx, esi
mov ebx, eax
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x1960]
and eax, esi
mov edi, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x195c]
imul eax, dword [eax + edi], 0x1e35a7bd
lea edi, [edx + edx]
mov dword [esp + 0x48], edi
add edi, 1
mov dword [esp + 0x4c], edi
shr eax, 0xf
lea eax, [ecx + eax*4]
mov ebp, dword [eax]
mov dword [eax], esi
mov eax, dword [esp + 0x1960]
and eax, ebp
mov dword [esp + 0x3c], eax
mov eax, esi
sub eax, ebp
je 0x40b99b
cmp ebx, eax
jb 0x40b99b
mov eax, dword [esp + 0x60]
add eax, dword [esp + 0x195c]
mov dword [esp + 0x54], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x6c], eax
mov edi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
cmp edi, eax
mov esi, eax
mov eax, dword [esp + 0x3c]
cmovbe esi, edi
mov edi, pe_nt_image_headers32
sub edi, esi
lea edx, [esi + eax]
add edx, dword [esp + 0x195c]
mov eax, dword [esp + 0x60]
lea ecx, [eax + esi]
add ecx, dword [esp + 0x195c]
add edi, edx
lea ebx, [edi - 4]
cmp edx, ebx
ja 0x40b69d
mov eax, dword [edx]
cmp dword [ecx], eax
jne 0x40b69d
xor eax, eax
mov dword [esp + 0x44], esi
jmp 0x40b218
mov esi, dword [ecx + eax]
cmp dword [edx], esi
jne 0x40b222
add edx, 4
add eax, 4
cmp edx, ebx
jbe 0x40b211
cmp edi, edx
mov esi, dword [esp + 0x44]
jbe 0x40b250
movzx ebx, byte [edx]
cmp byte [ecx + eax], bl
jne 0x40b250
mov ebx, eax
sub ebx, edx
sub edx, eax
add ebx, edi
mov edi, ebx
jmp 0x40b249
movzx ebx, byte [edx + eax]
cmp byte [ecx + eax], bl
jne 0x40b250
add eax, 1
cmp eax, edi
jne 0x40b240
add esi, eax
cmp esi, 0x7f
ja 0x40b6e0
mov eax, dword [esp + 0x195c]
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x6c]
add eax, esi
movzx eax, byte [eax + ecx]
cmp byte [edi + esi], al
mov eax, dword [esp + 0x68]
jbe 0x40b660
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x50], esi
mov dword [eax + edi*4], ebp
mov edi, dword [esp + 0x1970]
lea ecx, [eax + ecx*4]
and ebp, dword [edi + 0x28]
lea edi, [ebp + ebp + 1]
lea edx, [eax + edi*4]
mov dword [esp + 0x48], edi
mov ebp, dword [edx]
mov eax, dword [esp + 0x1960]
sub dword [esp + 0x40], 1
mov edi, dword [esp + 0x40]
and eax, ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x5c]
sub eax, ebp
sete bl
cmp dword [esp + 0x64], eax
setb al
or bl, al
jne 0x40b2d8
test edi, edi
jne 0x40b1c0
mov eax, dword [esp + 0x1970]
mov eax, dword [eax + 0x30]
mov dword [edx], eax
mov eax, dword [esp + 0x1970]
mov eax, dword [eax + 0x30]
mov dword [ecx], eax
add dword [esp + 0x5c], 8
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x58], eax
ja 0x40b125
mov ecx, dword [esp + 0x58]
cmp dword [esp + 0x7c], ecx
jbe 0x40b511
mov eax, dword [esp + 0x1970]
mov eax, dword [eax + 0x2c]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x1970]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x1970]
mov esi, dword [esp + 0x58]
mov edx, dword [eax + 0x28]
lea eax, [edx - 0xf]
and edx, esi
mov ebx, eax
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x1960]
and eax, esi
mov ecx, eax
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x195c]
imul eax, dword [eax + ecx], 0x1e35a7bd
mov ecx, dword [esp + 0x6c]
shr eax, 0xf
lea eax, [ecx + eax*4]
lea ecx, [edx + edx]
mov ebp, dword [eax]
mov dword [eax], esi
mov eax, dword [esp + 0x1960]
mov dword [esp + 0x50], ecx
add ecx, 1
mov dword [esp + 0x54], ecx
and eax, ebp
mov dword [esp + 0x3c], eax
mov eax, esi
sub eax, ebp
je 0x40b9b2
cmp eax, ebx
ja 0x40b9b2
mov eax, dword [esp + 0x5c]
add eax, dword [esp + 0x195c]
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x40], 0x40
mov dword [esp + 0x64], eax
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
cmp edi, eax
mov esi, eax
mov eax, dword [esp + 0x3c]
cmovbe esi, edi
mov edi, pe_nt_image_headers32
sub edi, esi
lea edx, [esi + eax]
add edx, dword [esp + 0x195c]
mov eax, dword [esp + 0x5c]
lea ecx, [eax + esi]
add ecx, dword [esp + 0x195c]
add edi, edx
lea ebx, [edi - 4]
cmp edx, ebx
ja 0x40b68e
mov eax, dword [edx]
cmp dword [ecx], eax
jne 0x40b68e
xor eax, eax
mov dword [esp + 0x44], esi
jmp 0x40b427
mov esi, dword [ecx + eax]
cmp dword [edx], esi
jne 0x40b431
add edx, 4
add eax, 4
cmp edx, ebx
jbe 0x40b420
cmp edi, edx
mov esi, dword [esp + 0x44]
jbe 0x40b460
movzx ebx, byte [ecx + eax]
cmp byte [edx], bl
jne 0x40b460
mov ebx, eax
sub ebx, edx
sub edx, eax
add ebx, edi
mov edi, ebx
jmp 0x40b459
movzx ebx, byte [edx + eax]
cmp byte [ecx + eax], bl
jne 0x40b460
add eax, 1
cmp edi, eax
jne 0x40b450
add esi, eax
cmp esi, 0x7f
ja 0x40b6ac
mov eax, dword [esp + 0x3c]
add eax, dword [esp + 0x195c]
mov edi, dword [esp + 0x64]
movzx eax, byte [eax + esi]
cmp byte [edi + esi], al
mov eax, dword [esp + 0x68]
jbe 0x40b630
mov edi, dword [esp + 0x50]
mov dword [esp + 0x48], esi
mov dword [eax + edi*4], ebp
mov edi, dword [esp + 0x1970]
and ebp, dword [edi + 0x28]
lea edi, [ebp + ebp + 1]
lea edx, [eax + edi*4]
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x54]
mov ebp, dword [edx]
lea ecx, [eax + edi*4]
mov eax, dword [esp + 0x1960]
sub dword [esp + 0x40], 1
mov edi, dword [esp + 0x40]
and eax, ebp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
sub eax, ebp
sete bl
cmp dword [esp + 0x60], eax
setb al
or bl, al
jne 0x40b4e6
test edi, edi
jne 0x40b3c5
mov eax, dword [esp + 0x1970]
mov eax, dword [eax + 0x30]
mov dword [edx], eax
mov eax, dword [esp + 0x1970]
mov eax, dword [eax + 0x30]
mov dword [ecx], eax
add dword [esp + 0x58], 1
mov eax, dword [esp + 0x58]
cmp eax, dword [esp + 0x7c]
jne 0x40b32d
mov esi, dword [esp + 0x78]
mov eax, dword [esp + 0x74]
mov edi, dword [esp + 0x196c]
mov ebp, dword [esp + 0x1974]
sub esi, 1
jmp 0x40b562
lea eax, [esp + 0x138]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xc], ebp
mov dword [esp], edi
mov edx, ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0xd24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
call fcn.00409a00
sub esi, 1
mov eax, ebx
je 0x40b571
lea ebx, [eax + 1]
add eax, 4
cmp dword [esp + 0x1954], eax
ja 0x40b52c
lea eax, [ebx + 1]
add ebx, 4
cmp dword [esp + 0x1954], ebx
mov dword [esp + 0x74], eax
ja 0x40ab6d
mov eax, dword [esp + 0xd24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1950]
mov dword [esp], eax
call fcn.00413720
mov eax, dword [esp + 0xd1c]
mov dword [esp + 0xd24], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x1950]
mov dword [esp], eax
call fcn.00413720
mov edx, dword [esp + 0x1974]
mov eax, dword [esp + 0x1954]
mov dword [esp + 0xd1c], 0
call fcn.00409630
add esp, 0x193c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x44], 0x7f
jbe 0x40b605
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x88]
mov dword [ecx + edi*4], ebp
mov edi, dword [esp + 0x1970]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x6c], eax
and ebp, dword [edi + 0x28]
lea edi, [ebp + ebp]
mov dword [esp + 0x88], edi
mov ebp, dword [ecx + edi*4]
jmp 0x40aee6
mov edi, dword [esp + 0x54]
mov dword [esp + 0x4c], esi
mov dword [eax + edi*4], ebp
mov edi, dword [esp + 0x1970]
and ebp, dword [edi + 0x28]
lea edi, [ebp + ebp]
lea ecx, [eax + ebp*8]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x50]
mov ebp, dword [ecx]
lea edx, [eax + edi*4]
jmp 0x40b4b4
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1970]
mov dword [esp + 0x54], esi
mov dword [eax + edi*4], ebp
and ebp, dword [ecx + 0x28]
lea edi, [ebp + ebp]
lea ecx, [eax + ebp*8]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x48]
mov ebp, dword [ecx]
lea edx, [eax + edi*4]
jmp 0x40b2a6
xor eax, eax
cmp edx, edi
jb 0x40b439
jmp 0x40b46b
xor eax, eax
cmp edx, edi
jb 0x40b22a
jmp 0x40b25b
mov ecx, dword [esp + 0x1970]
mov edi, dword [esp + 0x50]
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x68]
and eax, ebp
mov eax, dword [ecx + eax*8]
mov dword [ecx + edi*4], eax
mov eax, dword [esp + 0x1970]
mov edi, dword [esp + 0x54]
and ebp, dword [eax + 0x28]
mov eax, dword [ecx + ebp*8 + 4]
mov dword [ecx + edi*4], eax
jmp 0x40b4fe
mov ecx, dword [esp + 0x1970]
mov edi, dword [esp + 0x48]
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x68]
and eax, ebp
mov eax, dword [ecx + eax*8]
mov dword [ecx + edi*4], eax
mov eax, dword [esp + 0x1970]
mov edi, dword [esp + 0x4c]
and ebp, dword [eax + 0x28]
mov eax, dword [ecx + ebp*8 + 4]
mov dword [ecx + edi*4], eax
jmp 0x40b2f0
lea edx, [esi - 1]
mov eax, dword [esp + edx*8 + 0xd34]
shr eax, 5
cmp dword [esp + 0x8c], eax
jae 0x40b880
mov eax, dword [esp + edx*8 + 0xd30]
mov edx, dword [esp + edx*8 + 0xd34]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x14], 1
mov dword [esp + 0xd30], eax
mov eax, dword [esp + 0x1974]
mov dword [esp + 0xd34], edx
mov edx, dword [esp + 0x1958]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x138]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xd30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x196c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1968]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1960]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x195c]
mov dword [esp], eax
mov eax, dword [esp + 0x1954]
call fcn.00409cb0
cmp eax, 0x3fff
mov dword [esp + 0x78], eax
jbe 0x40b930
mov eax, dword [esp + 0xd34]
shr eax, 5
cmp dword [esp + 0x8c], eax
jae 0x40b0a6
mov edi, dword [esp + 0x78]
cmp edi, eax
cmovae eax, edi
mov dword [esp + 0x78], eax
jmp 0x40b0a6
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x1960]
sub eax, ebp
and ecx, ebp
cmp dword [esp + 0x4c], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x3c], ecx
jb 0x40af2b
test eax, eax
jne 0x40adba
jmp 0x40af2b
xor eax, eax
jmp 0x40ae3a
cmp dword [esp + 0x44], 0x7f
mov esi, dword [esp + 0x50]
jbe 0x40af2b
mov ecx, dword [esp + 0x1970]
mov edi, dword [esp + 0x84]
mov eax, dword [ecx + 0x28]
mov ecx, dword [esp + 0x60]
and eax, ebp
mov eax, dword [ecx + eax*8]
mov dword [ecx + edi*4], eax
mov eax, dword [esp + 0x1970]
mov edi, dword [esp + 0x88]
and ebp, dword [eax + 0x28]
mov eax, dword [ecx + ebp*8 + 4]
mov dword [ecx + edi*4], eax
jmp 0x40af2b
mov eax, dword [esp + 0x1974]
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0x1958]
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x138]
mov ecx, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xd30]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x196c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1968]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1960]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x195c]
mov dword [esp], eax
mov eax, dword [esp + 0x1954]
call fcn.00409cb0
cmp eax, 0x3fff
mov dword [esp + 0x78], eax
ja 0x40b954
cmp esi, 1
jne 0x40b571
mov eax, dword [esp + 0xd34]
mov ebx, dword [esp + 0x74]
shr eax, 5
cmp dword [esp + 0x8c], eax
jae 0x40b571
jmp 0x40b947
mov eax, dword [esp + 0xd34]
shr eax, 5
cmp dword [esp + 0x8c], eax
jae 0x40ba78
mov dword [esp + 0x78], 0
jmp 0x40b7ee
cmp esi, 1
jne 0x40b0a6
jmp 0x40b7d7
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x1970]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x84]
mov esi, dword [esp + 0x50]
mov eax, dword [eax + 0x30]
mov dword [ecx + edi*4], eax
mov eax, dword [esp + 0x1970]
mov edi, dword [esp + 0x88]
mov eax, dword [eax + 0x30]
mov dword [ecx + edi*4], eax
jmp 0x40af2b
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
lea edx, [eax + ecx*4]
lea ecx, [eax + edi*4]
jmp 0x40b2d8
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x50]
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x54]
lea ecx, [eax + ecx*4]
jmp 0x40b4e6
mov eax, dword [esp + 0x1974]
mov edi, dword [esp + 0x1954]
mov dword [eax], 0
mov dword [eax + 0xc], 0
mov eax, dword [esp + 0x1968]
mov dword [esp], edi
lea ecx, [eax + 0x40]
lea eax, [esp + 0x21c]
mov edx, eax
mov dword [esp + 0x90], eax
mov edi, eax
mov eax, dword [esp + 0x1950]
call fcn.00409990
mov eax, dword [esp + 0x1960]
mov ecx, dword [esp + 0x195c]
mov edx, dword [esp + 0x1958]
mov dword [esp], eax
mov eax, edi
call fcn.00409860
cmp dword [esp + 0x1954], 3
mov eax, dword [esp + 0x1958]
mov dword [esp + 0x218], 0
mov dword [esp + 0x98], eax
ja 0x40ab3f
jmp 0x40b588
mov dword [esp + 0x54], eax
lea esi, [esp + 0xd30]
mov dword [esp + 0x40], 1
jmp 0x40ad1c
mov ebx, dword [esp + 0x74]
jmp 0x40b571
mov ebx, dword [esp + 0x54]
xor edx, edx
cmp edi, ebx
mov eax, ebx
ja 0x40acd8
jmp 0x40ac2b