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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc4
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
and eax, 0x80000
test eax, eax
je 0x4046e2
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
sub edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cmp eax, edx
jb 0x4046e2
mov eax, 1
jmp 0x4046e7
mov eax, 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
jne 0x404721
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x8c]
sub edx, eax
cmp edx, 0x14ccb
jbe 0x404721
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x74]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x8c]
add eax, edx
jmp 0x404729
mov eax, dword [ebp + 8]
add eax, 0x39272
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
mov dword [eax + 0x30], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea edx, [eax + 0x14cbc]
mov eax, dword [ebp + 8]
mov dword [eax + 0x34], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x40476f
mov dword [esp + 8], 0xc3c
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0acc
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x58], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x5c], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
movzx eax, byte [eax]
movzx edx, al
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38]
mov ecx, eax
sar edx, cl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x2c]
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x38]
cmp eax, 8
sete al
movzx eax, al
neg eax
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
and eax, 0x1000
test eax, eax
je 0x404a17
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
test eax, eax
jne 0x404a17
mov byte [ebp - 0x31], 0x78
mov byte [ebp - 0xd], 3
mov dword [ebp - 0x38], 0xb
mov dword [ebp - 0x14], 0
jmp 0x404816
mov eax, dword [ebp - 0x14]
mov edx, dword [eax*4 + 0xab0aa0]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
and eax, 0xfff
cmp edx, eax
je 0x404820
add dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x38]
jb 0x4047f9
jmp 0x404821
nop
cmp dword [ebp - 0x14], 1
ja 0x40482d
mov byte [ebp - 0xd], 0
jmp 0x404843
cmp dword [ebp - 0x14], 5
ja 0x404839
mov byte [ebp - 0xd], 1
jmp 0x404843
cmp dword [ebp - 0x14], 6
jne 0x404843
mov byte [ebp - 0xd], 2
movzx eax, byte [ebp - 0x31]
shl eax, 8
mov edx, eax
movzx eax, byte [ebp - 0xd]
shl eax, 6
or eax, edx
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov edx, 0x8421085
mov eax, ecx
mul edx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 4
mov edx, eax
shl edx, 5
sub edx, eax
mov eax, ecx
sub eax, edx
mov edx, dword [ebp - 0x3c]
sub edx, eax
lea eax, [edx + 0x1f]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 0x3d], al
movzx eax, byte [ebp - 0x31]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], 8
mov eax, dword [ebp - 0x48]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
cmp eax, dword [ebp - 0x44]
jae 0x4048cd
mov dword [esp + 8], 0xc59
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0988
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 0x44]
mov ecx, eax
shl ebx, cl
mov eax, ebx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x48]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
jmp 0x404946
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jae 0x404926
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
shr eax, 8
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
cmp eax, 7
ja 0x4048fd
movzx eax, byte [ebp - 0x3d]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x50]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
cmp eax, dword [ebp - 0x4c]
jae 0x404993
mov dword [esp + 8], 0xc5a
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0988
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 0x4c]
mov ecx, eax
shl ebx, cl
mov eax, ebx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x50]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
jmp 0x404a0c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jae 0x4049ec
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
shr eax, 8
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
cmp eax, 7
ja 0x4049c3
cmp dword [ebp + 0xc], 4
sete al
movzx eax, al
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], 1
mov eax, dword [ebp - 0x58]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
cmp eax, dword [ebp - 0x54]
jae 0x404a5f
mov dword [esp + 8], 0xc5d
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0988
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 0x54]
mov ecx, eax
shl ebx, cl
mov eax, ebx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x58]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
jmp 0x404ad8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jae 0x404ab8
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
shr eax, 8
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
cmp eax, 7
ja 0x404a8f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x2c], 0
jne 0x404b3c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
and eax, 0x40000
test eax, eax
jne 0x404b1e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
cmp eax, 0x2f
ja 0x404b25
mov eax, 1
jmp 0x404b2a
mov eax, 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00404672
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x2c], 0
jne 0x404b6a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x404f4a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
sub eax, dword [ebp - 0x5c]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
cmp edx, eax
jb 0x404f4a
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x40]
sub edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
cmp eax, edx
jb 0x404f4a
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x5c]
mov dword [eax + 0x30], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x60]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x64]
mov dword [eax + 0x44], edx
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x6c], 2
mov eax, dword [ebp - 0x6c]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
cmp eax, dword [ebp - 0x68]
jae 0x404be3
mov dword [esp + 8], 0xc71
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0988
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 0x68]
mov ecx, eax
shl ebx, cl
mov eax, ebx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x6c]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
jmp 0x404c5c
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jae 0x404c3c
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
shr eax, 8
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
cmp eax, 7
ja 0x404c13
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x404d44
mov dword [ebp - 0x70], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov edx, 8
sub edx, eax
mov dword [ebp - 0x74], edx
mov eax, dword [ebp - 0x74]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
cmp eax, dword [ebp - 0x70]
jae 0x404cc0
mov dword [esp + 8], 0xc73
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0988
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 0x70]
mov ecx, eax
shl ebx, cl
mov eax, ebx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x74]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
jmp 0x404d39
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jae 0x404d19
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
shr eax, 8
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
cmp eax, 7
ja 0x404cf0
mov dword [ebp - 0x18], 2
jmp 0x404e3d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
and eax, 0xffff
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x84], 0x10
mov eax, dword [ebp - 0x84]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
cmp eax, dword [ebp - 0x80]
jae 0x404d9f
mov dword [esp + 8], 0xc76
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0988
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 0x80]
mov ecx, eax
shl ebx, cl
mov eax, ebx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x84]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
jmp 0x404e1b
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jae 0x404dfb
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
shr eax, 8
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
cmp eax, 7
ja 0x404dd2
sub dword [ebp - 0x18], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
xor eax, 0xffff
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], edx
cmp dword [ebp - 0x18], 0
jne 0x404d50
mov dword [ebp - 0x18], 0
jmp 0x404f39
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 0x18]
add eax, edx
and eax, 0x7fff
mov edx, eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax + edx + 0x90]
movzx eax, al
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x7c], 8
mov eax, dword [ebp - 0x7c]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
cmp eax, dword [ebp - 0x78]
jae 0x404eb1
mov dword [esp + 8], 0xc79
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0988
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 0x78]
mov ecx, eax
shl ebx, cl
mov eax, ebx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x7c]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
jmp 0x404f2a
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jae 0x404f0a
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
shr eax, 8
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
cmp eax, 7
ja 0x404ee1
add dword [ebp - 0x18], 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
cmp dword [ebp - 0x18], eax
jb 0x404e53
jmp 0x404f7e
cmp dword [ebp - 0xc], 0
jne 0x404f7e
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x5c]
mov dword [eax + 0x30], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x60]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x64]
mov dword [eax + 0x44], edx
mov dword [esp + 4], 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00404672
cmp dword [ebp + 0xc], 0
je 0x405463
cmp dword [ebp + 0xc], 4
jne 0x40519a
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x405081
mov dword [ebp - 0xa0], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov edx, 8
sub edx, eax
mov dword [ebp - 0xa4], edx
mov eax, dword [ebp - 0xa4]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
cmp eax, dword [ebp - 0xa0]
jae 0x404ff7
mov dword [esp + 8], 0xc89
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0988
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 0xa0]
mov ecx, eax
shl ebx, cl
mov eax, ebx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0xa4]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
jmp 0x405076
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jae 0x405056
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
shr eax, 8
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
cmp eax, 7
ja 0x40502d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
and eax, 0x1000
test eax, eax
je 0x405463
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
jmp 0x40518b
mov eax, dword [ebp - 0x20]
shr eax, 0x18
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xac], 8
mov eax, dword [ebp - 0xac]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
cmp eax, dword [ebp - 0xa8]
jae 0x4050f9
mov dword [esp + 8], 0xc8e
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0988
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 0xa8]
mov ecx, eax
shl ebx, cl
mov eax, ebx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0xac]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
jmp 0x405178
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jae 0x405158
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
shr eax, 8
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
cmp eax, 7
ja 0x40512f
shl dword [ebp - 0x20], 8
add dword [ebp - 0x1c], 1
cmp dword [ebp - 0x1c], 3
jbe 0x4050a9
jmp 0x405463
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x8c], 3
mov eax, dword [ebp - 0x8c]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
cmp eax, dword [ebp - 0x88]
jae 0x4051ef
mov dword [esp + 8], 0xc94
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0988
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 0x88]
mov ecx, eax
shl ebx, cl
mov eax, ebx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x8c]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
jmp 0x40526e
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jae 0x40524e
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
shr eax, 8
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
cmp eax, 7
ja 0x405225
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
test eax, eax
je 0x405368
mov dword [ebp - 0x90], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov edx, 8
sub edx, eax
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x94]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
cmp eax, dword [ebp - 0x90]
jae 0x4052de
mov dword [esp + 8], 0xc96
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0988
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 0x90]
mov ecx, eax
shl ebx, cl
mov eax, ebx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x94]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
jmp 0x40535d
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jae 0x40533d
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
shr eax, 8
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
cmp eax, 7
ja 0x405314
mov dword [ebp - 0x24], 2
jmp 0x405459
mov eax, dword [ebp - 0x28]
movzx eax, ax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x9c], 0x10
mov eax, dword [ebp - 0x9c]
mov edx, 1
mov ecx, eax
shl edx, cl
mov eax, edx
sub eax, 1
cmp eax, dword [ebp - 0x98]
jae 0x4053c4
mov dword [esp + 8], 0xc99
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0988
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
mov ebx, dword [ebp - 0x98]
mov ecx, eax
shl ebx, cl
mov eax, ebx
or edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x44]
mov eax, dword [ebp - 0x9c]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
jmp 0x405443
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jae 0x405423
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 0x48]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [eax + 1]
mov edx, dword [ebp + 8]
mov dword [edx + 0x30], ecx
mov edx, ebx
mov byte [eax], dl
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x48]
shr eax, 8
mov edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x48], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
lea edx, [eax - 8]
mov eax, dword [ebp + 8]
mov dword [eax + 0x44], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x44]
cmp eax, 7
ja 0x4053fa
sub dword [ebp - 0x24], 1
xor dword [ebp - 0x28], 0xffff
cmp dword [ebp - 0x24], 0
jne 0x405374
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x30]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x34]
cmp edx, eax
jb 0x405491
mov dword [esp + 8], 0xc9e
mov dword [esp + 4], 0xab0954
mov dword [esp], 0xab0aec
mov eax, dword [0xb14284]
call eax
mov eax, dword [ebp + 8]
add eax, 0x8192
mov dword [esp + 8], 0x240
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004262d8
mov eax, dword [ebp + 8]
add eax, 0x83d2
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004262d8
mov eax, dword [ebp + 8]
add eax, 0x9272
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
mov dword [eax + 0x28], edx
mov eax, dword [ebp + 8]
lea edx, [eax + 0x9272]
mov eax, dword [ebp + 8]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x38], 8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x40], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x64]
lea edx, [eax + 1]
mov eax, dword [ebp + 8]
mov dword [eax + 0x64], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x30]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
je 0x405671
mov eax, dword [ebp + 8]
mov eax, dword [eax]
test eax, eax
je 0x4055a9
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x84]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x70]
sub edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x78]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 4]
mov ecx, dword [ebp + 8]
add ecx, 0x39272
mov dword [esp + 8], edx
mov edx, dword [ebp - 0xb0]
mov dword [esp + 4], edx
mov dword [esp], ecx
call eax
test eax, eax
jne 0x405671
mov eax, dword [ebp + 8]
mov dword [eax + 0x6c], 0xffffffff
mov eax, 0xffffffff
jmp 0x405677
mov eax, dword [ebp + 8]
add eax, 0x39272
cmp dword [ebp - 0x30], eax
jne 0x405657
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x7c]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x8c]
sub edx, eax
mov eax, dword [ebp - 0xb0]
cmp edx, eax
cmovbe eax, edx
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov edx, dword [ebp + 8]
lea ecx, [edx + 0x39272]
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0x74]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x8c]
add edx, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call fcn.004262e8
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x8c]
mov eax, dword [ebp - 0xb4]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x8c], edx
mov eax, dword [ebp - 0xb4]
sub dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
je 0x405671
mov edx, dword [ebp - 0xb4]
mov eax, dword [ebp + 8]
mov dword [eax + 0x58], edx
mov edx, dword [ebp - 0xb0]
mov eax, dword [ebp + 8]
mov dword [eax + 0x5c], edx
jmp 0x405671
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x8c]
mov eax, dword [ebp - 0xb0]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x8c], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x5c]
mov ebx, dword [ebp - 4]
leave
ret