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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x487286
mov eax, dword fs:[0]
push eax
sub esp, 0x1d8
mov eax, dword [0x4ae084]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
push edi
mov eax, dword [0x4ae084]
xor eax, esp
push eax
lea eax, [esp + 0x1e8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea ecx, [esp + 0x94]
call fcn.0044e1d0
mov dword [esp + 0x1f0], 0
movzx edx, byte [ebx + 0xa42a6]
movzx eax, byte [ebx + 0xa428c]
mov cl, byte [ebx + 0xa428d]
mov byte [esp + 0x53], dl
movzx edx, byte [ebx + 0xa42a5]
mov byte [esp + 0x52], dl
movzx edx, byte [ebx + 0xa42a8]
mov byte [esp + 0x50], dl
movzx edx, byte [ebx + 0xa42a9]
mov byte [esp + 0x4b], al
cmp byte [esp + 0x4b], 0
mov al, byte [ebx + 0xa42aa]
mov byte [esp + 0x51], dl
je 0x40dc2d
test cl, cl
je 0x40dc2d
mov eax, dword [ebx + 0x97fc]
cmp eax, 1
je 0x40eb5e
test eax, eax
je 0x40eb5e
cmp eax, 3
jne 0x40dbe2
mov ecx, dword [ebx + 0x943c]
mov dword [esp + 0x54], ecx
test ecx, ecx
je 0x40eb5e
call fcn.00445a90
lea esi, [ebx + 0xcb8]
call fcn.00444850
test eax, eax
je 0x40dbae
mov ecx, dword [esp + 0x54]
mov ecx, dword [ecx + 0x164]
mov edx, dword [ebx + 0x97e4]
mov esi, dword [ebx + 0x97e0]
push 0xcc0020
push 0
push 0
push ecx
push edx
push esi
push 0
push 0
push eax
call dword [0x48904c]
lea esi, [ebx + 0xcb8]
call fcn.00444890
lea esi, [ebx + 0x2f4]
call fcn.00443c90
test al, al
je 0x40eb5e
push 0
push 0
xor ecx, ecx
lea esi, [ebx + 0xcb8]
call fcn.00444cf0
lea esi, [ebx + 0x2f4]
call fcn.00443cb0
jmp 0x40eb5e
lea esi, [ebx + 0x2f4]
call fcn.00443c90
test al, al
je 0x40eb3c
mov edx, dword [ebx + 0x97e0]
mov ecx, dword [ebx + 0x97e4]
xor eax, eax
mov dword [esp + 0x1c], edx
push eax
lea edi, [ebx + 0x9440]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
call fcn.0043ea60
call fcn.00443cb0
jmp 0x40eb3c
test al, al
je 0x40de44
cmp byte [ebx + 0xa42bc], 0
mov eax, dword [ebx + 0x34718]
mov ecx, dword [ebx + 0x3471c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x40dd5b
mov edx, dword [ebx + 0xa42ac]
mov dword [esp + 0x2c], edx
mov edx, dword [ebx + 0xa42b0]
mov dword [esp + 0x30], edx
mov edx, dword [ebx + 0xa42b4]
mov dword [esp + 0x34], edx
mov edx, dword [ebx + 0xa42b8]
mov dword [esp + 0x38], edx
mov edx, dword [ebx + 0xa3e84]
lea esi, [edx + eax]
mov dword [esp + 0x1c], esi
mov esi, dword [ebx + 0xa3e88]
lea edi, [esi + ecx]
mov dword [esp + 0x20], edi
test eax, eax
jns 0x40dca8
sub dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x1c]
cmp eax, edx
jle 0x40dcbc
mov edi, edx
sub edi, eax
add dword [esp + 0x34], edi
mov dword [esp + 0x1c], edx
test ecx, ecx
jns 0x40dccc
sub dword [esp + 0x30], ecx
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
cmp eax, esi
jle 0x40dce0
mov ecx, esi
sub ecx, eax
add dword [esp + 0x38], ecx
mov dword [esp + 0x20], esi
mov eax, dword [ebx + 0x310]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
lea ecx, [esp + 0xac]
push ecx
push eax
xor edi, edi
call edx
test eax, eax
js 0x40dd0e
test dword [esp + 0x1a0], 0x2000200
je 0x40dd0e
mov edi, 2
cmp dword [ebx + 0xa3e7c], 1
push edi
lea ecx, [esp + 0x18]
jne 0x40dd37
lea eax, [esp + 0x30]
lea esi, [ebx + 0x1160]
push eax
lea edx, [ebx + 0x368]
call fcn.004449c0
jmp 0x40de39
push ecx
lea esi, [ebx + 0x368]
lea ecx, [esp + 0x34]
call fcn.00444cf0
test al, al
jne 0x40de44
lea eax, [ebx + 0x368]
push eax
jmp 0x40de25
mov edx, dword [ebx + 0x394]
mov esi, dword [ebx + 0x398]
lea edi, [edx + eax]
mov dword [esp + 0x1c], edi
lea edi, [esi + ecx]
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], esi
test eax, eax
jns 0x40dd9f
neg eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0
mov edi, dword [ebx + 0xa3e84]
mov eax, dword [esp + 0x1c]
cmp eax, edi
jle 0x40ddc1
sub edi, eax
mov eax, dword [ebx + 0xa3e84]
add edi, edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], eax
jmp 0x40ddc5
mov edi, dword [esp + 0x34]
test ecx, ecx
jns 0x40ddd7
neg ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x18], 0
mov ecx, dword [ebx + 0xa3e88]
mov edx, dword [esp + 0x20]
cmp edx, ecx
jle 0x40ddf5
mov eax, ecx
sub eax, edx
add eax, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ecx
jmp 0x40ddf9
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x2c], edi
jge 0x40de44
cmp dword [esp + 0x30], eax
jge 0x40de44
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
lea edi, [ebx + 0x368]
push eax
lea ecx, [esp + 0x34]
mov esi, edi
call fcn.00444b20
test al, al
jne 0x40de44
push edi
lea esi, [ebx + 0x1160]
push esi
lea ecx, [esp + 0x34]
lea eax, [esp + 0x1c]
call fcn.00445250
push 0
push 0
xor ecx, ecx
call fcn.00444b20
lea esi, [ebx + 0x2f4]
call fcn.00443c90
test al, al
je 0x40eb36
cmp byte [esp + 0x51], 0
je 0x40de67
push 0
mov ecx, ebx
call fcn.0040ebc0
cmp byte [esp + 0x4b], 0
je 0x40deab
mov eax, dword [ebx + 0x97fc]
cmp eax, 2
jne 0x40df51
mov edx, dword [ebx + 0x97e4]
mov ecx, dword [ebx + 0x97e0]
xor eax, eax
mov dword [esp + 0x20], edx
push eax
lea edi, [ebx + 0x9440]
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
call fcn.0043ea60
cmp byte [esp + 0x53], 0
je 0x40e62e
lea eax, [ebx + 0x346e0]
mov dword [esp + 0x88], eax
mov dword [esp + 0x54], 3
jmp 0x40ded0
mov ecx, dword [esp + 0x88]
mov eax, dword [ecx]
mov dword [esp + 0x90], 0
mov dword [esp + 0x8c], eax
cmp eax, 0xffffffff
je 0x40e61c
imul eax, eax, 0x64
add eax, ebx
cmp byte [eax + 0x343c4], 0
mov dword [esp + 0x28], eax
je 0x40e61c
mov ecx, dword [eax + 0x343d4]
mov edx, dword [eax + 0x343d8]
mov edi, dword [ebp + 0xc]
sub edx, ecx
sub edi, ecx
mov ecx, dword [eax + 0x343ec]
mov dword [esp + 0x44], edx
lea edx, [ebx + 0xb154]
mov dword [esp + 0x60], ecx
lea ecx, [eax + 0x343f8]
push edx
mov dword [esp + 0x5c], edi
call fcn.0043b6f0
mov cl, byte [eax + 0x58]
mov dword [esp + 0x5c], eax
test cl, cl
je 0x40dfbc
mov edx, dword [eax + 0x5c]
jmp 0x40dfbf
cmp eax, 3
jne 0x40deab
mov edi, dword [ebx + 0x943c]
test edi, edi
je 0x40eb5e
mov ecx, edi
call fcn.00445a90
lea esi, [ebx + 0xcb8]
call fcn.00444850
test eax, eax
je 0x40dfac
mov edi, dword [edi + 0x164]
mov ecx, dword [ebx + 0x97e4]
mov ebx, dword [ebx + 0x97e0]
push 0xcc0020
push 0
push 0
push edi
push ecx
push ebx
push 0
push 0
push eax
call dword [0x48904c]
call fcn.00444890
push 0
push 0
xor ecx, ecx
call fcn.00444cf0
jmp 0x40eb5e
mov edx, dword [eax + 0x20]
mov dword [esp + 0x24], edx
test cl, cl
je 0x40dfd0
mov eax, dword [eax + 0x60]
mov dword [esp + 0x3c], eax
jmp 0x40dfd7
mov ecx, dword [eax + 0x24]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
mov ecx, dword [edx + 0x343d0]
call fcn.0040d530
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x343e8], 5
jne 0x40e029
xor eax, eax
lea ecx, [ecx]
cmp dword [eax*4 + 0x4bdd08], edi
ja 0x40e018
inc eax
cmp eax, 4
jl 0x40e000
mov dword [esp + 0x6c], eax
jmp 0x40e61c
mov dword [esp + 0x6c], eax
cmp eax, 4
jge 0x40e61c
mov edi, dword [esp + 0x58]
mov ecx, dword [esp + 0x28]
cmp dword [ecx + 0x343e0], 0xffffffff
je 0x40e21f
cmp dword [esp + 0x44], 0
je 0x40e21f
mov esi, dword [esp + 0x24]
mov edx, ecx
mov ecx, dword [edx + 0x343d0]
call fcn.0040d4d0
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0x343e0]
call fcn.0040d4d0
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x343d0]
mov dword [esp + 0x64], eax
call fcn.0040d530
mov edx, dword [esp + 0x28]
mov ecx, dword [edx + 0x343e0]
mov dword [esp + 0x4c], eax
call fcn.0040d530
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x343e8], 2
jne 0x40e175
cmp edi, 3
jge 0x40e0b7
mov dword [esp + 0x24], 0
jmp 0x40e0be
add edi, 0xfffffffd
mov dword [esp + 0x24], edi
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x64]
push ecx
push edx
mov edx, dword [esp + 0x2c]
call fcn.0040d600
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x68]
push eax
mov eax, dword [esp + 0x74]
push ecx
call fcn.0040d600
mov edi, dword [esp + 0x6c]
mov ecx, eax
mov al, byte [edi + 0x58]
add esp, 0x10
test al, al
je 0x40e107
mov edx, dword [edi + 0x5c]
jmp 0x40e10a
mov edx, dword [edi + 0x20]
mov dword [esp + 0x24], edx
test al, al
je 0x40e11b
mov eax, dword [edi + 0x60]
mov dword [esp + 0x3c], eax
jmp 0x40e122
mov edx, dword [edi + 0x24]
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
sar eax, 1
sub esi, eax
mov dword [esp + 0x30], ecx
add ecx, dword [esp + 0x3c]
mov dword [esp + 0x2c], esi
add esi, dword [esp + 0x24]
mov dword [esp + 0x38], ecx
mov ecx, 0xff
xor eax, eax
push 1
lea edx, [esp + 0x30]
mov dword [esp + 0x38], esi
mov dword [edi + 0x38], ecx
mov dword [edi + 0x3c], eax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], ecx
mov dword [edi + 0x48], 0xff0000ff
mov dword [edi + 0x34], 0x40
call fcn.0043ea60
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 0x60]
sub eax, 0
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x4c]
je 0x40e1ab
dec eax
je 0x40e18f
mov dword [esp + 0x40], ecx
jmp 0x40e1cb
mov eax, dword [esp + 0x64]
mov esi, dword [esp + 0x40]
push edi
push eax
mov eax, dword [esp + 0x4c]
call fcn.0040d5a0
mov esi, dword [esp + 0x54]
add esp, 8
jmp 0x40e1c7
mov eax, dword [esp + 0x64]
cmp ecx, eax
je 0x40e1c5
test edi, edi
je 0x40e1c5
sub eax, ecx
imul eax, edi
cdq
idiv dword [esp + 0x44]
add eax, ecx
jmp 0x40e1c7
mov eax, ecx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x60]
sub eax, 0
je 0x40e1f9
dec eax
je 0x40e1dd
mov dword [esp + 0x4c], esi
jmp 0x40e236
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x44]
mov esi, dword [esp + 0x4c]
push edi
push ecx
call fcn.0040d5a0
add esp, 8
mov dword [esp + 0x4c], eax
jmp 0x40e236
mov eax, dword [esp + 0x68]
cmp esi, eax
je 0x40e217
test edi, edi
je 0x40e217
sub eax, esi
imul eax, edi
cdq
idiv dword [esp + 0x44]
add eax, esi
mov dword [esp + 0x4c], eax
jmp 0x40e236
mov eax, esi
mov dword [esp + 0x4c], eax
jmp 0x40e236
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [edx + 0x343d0]
call fcn.0040d4d0
mov dword [esp + 0x40], eax
mov ecx, dword [esp + 0x5c]
mov al, byte [ecx + 0x58]
test al, al
je 0x40e246
mov edx, dword [ecx + 0x5c]
jmp 0x40e249
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x24], edx
test al, al
je 0x40e25a
mov eax, dword [ecx + 0x60]
mov dword [esp + 0x3c], eax
jmp 0x40e261
mov ecx, dword [ecx + 0x24]
mov dword [esp + 0x3c], ecx
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x343e8]
xor ecx, ecx
dec eax
xor esi, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
cmp eax, 4
ja case.0x40e291.2
jmp dword [eax*4 + 0x40eb9c]
cmp dword [esp + 0x44], 1
jle case.0x40e291.2
cmp edi, dword [esp + 0x44]
jg case.0x40e291.2
mov eax, dword [esp + 0x44]
cdq
sub eax, edx
sar eax, 1
cmp edi, eax
jge 0x40e2c9
mov eax, edi
imul eax, eax, 0xc8
cdq
idiv dword [esp + 0x44]
jmp 0x40e2da
mov esi, dword [esp + 0x44]
mov eax, esi
sub eax, edi
imul eax, eax, 0xc8
cdq
idiv esi
mov esi, eax
mov eax, dword [esp + 0x28]
mov edx, dword [eax + 0x343d0]
cmp edx, 0x64
jge case.0x40e291.2
mov eax, 0x66666667
imul edx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne case.0x40e291.2
neg esi
jmp case.0x40e291.2
mov eax, dword [esp + 0x3c]
add eax, 0xc8
imul eax, edi
cdq
idiv dword [esp + 0x44]
mov edx, dword [ebx + 0xa3e88]
mov dword [esp + 0x7c], edx
sub eax, dword [esp + 0x3c]
add eax, edx
mov dword [esp + 0x74], eax
mov ecx, dword [esp + 0x40]
add ecx, 0xffffff41
lea eax, [ebx + 0x5134]
mov dword [esp + 0x70], ecx
mov dword [ebx + 0x5168], 0x80
add ecx, 0x17e
mov dword [esp + 0x78], ecx
xor ecx, ecx
mov dword [eax + 0x38], ecx
movzx edx, byte [eax + 0x3c]
movzx edi, byte [eax + 0x40]
shl edx, 8
or edx, edi
movzx edi, byte [eax + 0x44]
shl edx, 8
or edx, edi
mov dword [eax + 0x48], edx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
push 1
mov dword [eax + 0x54], ecx
push eax
mov eax, 0x4bdce8
lea ecx, [esp + 0x78]
call fcn.00440580
mov ecx, esi
jmp case.0x40e291.2
mov eax, dword [esp + 0x3c]
add eax, 0xc8
imul eax, edi
cdq
idiv dword [esp + 0x44]
mov edi, dword [ebx + 0xa3e88]
mov edx, edi
mov dword [esp + 0x7c], edi
sub edx, eax
mov dword [esp + 0x74], edx
jmp 0x40e335
mov eax, dword [esp + 0x6c]
cmp eax, 3
ja case.0x40e291.2
jmp dword [eax*4 + 0x40ebb0]
mov esi, dword [0x4bdd18]
mov eax, edi
imul eax, eax, 0x3a
xor edx, edx
div esi
xor edx, edx
mov ecx, eax
lea eax, [edi*8]
sub eax, edi
add eax, eax
neg ecx
div esi
mov esi, eax
jmp case.0x40e291.2
sub edi, dword [0x4bdd08]
mov esi, dword [0x4bdd1c]
mov eax, edi
imul eax, eax, 0x74
xor edx, edx
div esi
xor edx, edx
lea ecx, [eax - 0x3a]
lea eax, [edi*8]
sub eax, edi
add eax, eax
add eax, eax
div esi
lea esi, [eax + 0xe]
jmp case.0x40e291.2
sub edi, dword [0x4bdd0c]
mov esi, dword [0x4bdd20]
mov eax, edi
imul eax, eax, 0x74
xor edx, edx
div esi
mov ecx, 0xffffffc6
xor edx, edx
sub ecx, eax
lea eax, [edi*8]
sub eax, edi
add eax, eax
div esi
lea esi, [eax + 0x2a]
jmp case.0x40e291.2
sub edi, dword [0x4bdd10]
xor edx, edx
mov eax, edi
imul eax, eax, 0x320
div dword [0x4bdd24]
xor edx, edx
lea esi, [eax + 0x38]
mov eax, edi
imul eax, eax, 0x16
div dword [0x4bdd24]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x28]
cmp byte [eax + 0x343e4], 0
je 0x40e4c8
call fcn.0044fd10
movzx edx, ax
and edx, 0x80000007
jns 0x40e4ae
dec edx
or edx, 0xfffffff8
inc edx
lea ecx, [ecx + edx - 4]
call fcn.0044fd10
movzx eax, ax
and eax, 0x80000007
jns 0x40e4c6
dec eax
or eax, 0xfffffff8
inc eax
add esi, eax
mov edi, dword [esp + 0x24]
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esp + 0x40]
sar eax, 1
sub edx, eax
add edx, ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x2c], edx
add edx, edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x34], edx
lea edx, [ecx + esi]
add ecx, edi
add ecx, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x5c]
movzx ecx, byte [edx + 0x3c]
movzx esi, byte [edx + 0x40]
shl ecx, 8
or ecx, esi
movzx esi, byte [edx + 0x44]
shl ecx, 8
or ecx, esi
mov dword [edx + 0x48], ecx
mov ecx, dword [esp + 0x90]
xor esi, esi
mov dword [edx + 0x34], 0xff
mov dword [edx + 0x38], 0
cmp ecx, esi
jle 0x40e53f
mov dword [edx + 0x4c], ecx
mov dword [edx + 0x50], eax
mov dword [edx + 0x54], edi
jmp 0x40e548
mov dword [edx + 0x4c], esi
mov dword [edx + 0x50], esi
mov dword [edx + 0x54], esi
mov edi, dword [esp + 0x5c]
push 1
xor eax, eax
lea edx, [esp + 0x30]
call fcn.0043ea60
mov esi, dword [esp + 0x28]
cmp byte [esi + 0x343e5], 0
je 0x40e5f7
mov cl, byte [ebx + 0x518c]
lea edi, [ebx + 0x5134]
test cl, cl
je 0x40e57f
mov eax, dword [edi + 0x5c]
jmp 0x40e582
mov eax, dword [edi + 0x20]
cdq
sub eax, edx
sar eax, 1
test cl, cl
je 0x40e590
mov edx, dword [edi + 0x60]
jmp 0x40e593
mov edx, dword [edi + 0x24]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x8c]
add edx, 0x85c
imul edx, edx, 0x64
mov esi, ecx
sub esi, eax
add eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0xa4288]
sub eax, dword [edx + ebx]
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 0x343f4]
xor edx, edx
div ecx
mov dword [esp + 0x30], 0
mov eax, edx
imul eax, eax, 0xff
xor edx, edx
div ecx
lea edx, [esp + 0x2c]
push eax
lea eax, [ebx + 0x3274]
push eax
xor eax, eax
call fcn.00441d00
mov esi, dword [esi + 0x343e8]
sub esi, 3
je 0x40e605
dec esi
jne 0x40e61c
push 1
lea eax, [ebx + 0x5134]
push eax
mov eax, 0x4bdcf8
lea ecx, [esp + 0x78]
call fcn.00440580
add dword [esp + 0x88], 4
dec dword [esp + 0x54]
jne 0x40ded0
cmp byte [esp + 0x52], 0
je 0x40eb1b
cmp byte [ebx + 0x344f0], 0
je 0x40eb1b
cmp byte [ebx + 0x34530], 0
je 0x40e9e8
lea ecx, [esp + 0x70]
call fcn.0044e1d0
mov esi, dword [ebx + 0x35904]
lea ecx, [esp + 0x70]
mov byte [esp + 0x1f0], 0
call fcn.0044e300
xor ecx, ecx
test esi, esi
setne cl
mov edi, dword [0x4caa30]
mov eax, 0x51eb851f
mov esi, ecx
mov ecx, dword [ebx + 0xa4078]
shl ecx, 8
imul ecx
mov ecx, dword [0x4caa58]
sar edx, 5
mov eax, edx
add edi, ecx
shr eax, 0x1f
add eax, edx
mov edx, dword [0x4caa5c]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x4caa34]
add ecx, edx
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x344f4]
imul edx, edx, 0x290
mov dword [esp + 0x20], ecx
mov dword [esp + 0x54], eax
mov dword [esp + 0x1c], edi
lea ecx, [edx + ebx + 0x13b4]
test eax, eax
jns 0x40e6e1
xor eax, eax
jmp 0x40e6ed
cmp eax, 0xff
jle 0x40e6ed
mov eax, 0xff
mov dword [ecx + 0x34], eax
mov ecx, dword [ebx + 0x344f4]
imul ecx, ecx, 0x290
mov eax, esi
shl eax, 4
push 1
add eax, 0x4e1d0c
lea edi, [ecx + ebx + 0x13b4]
lea edx, [esp + 0x18]
call fcn.0043ea60
lea esi, [ebx + 0x345dc]
call fcn.0044e510
test al, al
jne 0x40e844
mov eax, dword [0x4caa60]
mov edx, dword [0x4caa38]
mov ecx, dword [0x4caa64]
add edx, eax
mov dword [esp + 0x14], eax
mov eax, dword [0x4caa3c]
add eax, ecx
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x344f4]
imul ecx, ecx, 0x290
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x1c], edx
lea ecx, [ecx + ebx + 0x13b4]
test eax, eax
jns 0x40e774
xor eax, eax
jmp 0x40e780
cmp eax, 0xff
jle 0x40e780
mov eax, 0xff
mov dword [ecx + 0x34], eax
mov edx, dword [ebx + 0x344f4]
imul edx, edx, 0x290
lea edi, [edx + ebx + 0x13b4]
push 1
mov eax, 0x4caa48
lea edx, [esp + 0x18]
call fcn.0043ea60
mov eax, dword [ebx + 0x34508]
add eax, dword [0x4cafa0]
mov ecx, dword [0x4caa28]
mov edx, dword [0x4caa2c]
add ecx, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x3450c]
add eax, dword [0x4cafa4]
mov dword [esp + 0x1c], ecx
add edx, eax
mov ecx, dword [0x49bbb0]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x344f4]
imul eax, eax, 0x290
mov dword [esp + 0x20], edx
mov edx, dword [0x49bbb4]
lea eax, [eax + ebx + 0x13b4]
mov dword [eax + 0x34], 0xff
mov eax, dword [0x49bbb8]
mov dword [esp + 0x74], edx
mov edx, dword [ebx + 0x344f4]
imul edx, edx, 0x290
mov dword [esp + 0x70], ecx
mov ecx, dword [0x49bbbc]
mov dword [esp + 0x78], eax
lea edi, [edx + ebx + 0x13b4]
push 1
lea eax, [esp + 0x74]
lea edx, [esp + 0x18]
mov dword [esp + 0x80], ecx
call fcn.0043ea60
mov eax, dword [ebx + 0x34508]
mov ecx, dword [ebx + 0x34510]
mov edx, dword [ebx + 0x34514]
add ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx + 0x34618]
mov dword [esp + 0x30], ecx
mov ecx, dword [ebx + 0x344f4]
mov dword [esp + 0x14], eax
imul ecx, ecx, 0x290
mov eax, dword [ebx + 0x3450c]
add edx, eax
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x34614]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x34620]
mov dword [esp + 0x20], edx
mov edx, dword [ebx + 0x3461c]
mov dword [esp + 0x38], eax
lea eax, [ecx + ebx + 0x13b4]
mov dword [esp + 0x34], edx
mov esi, 0xff
mov dword [eax + 0x34], esi
mov edx, dword [ebx + 0x344f4]
imul edx, edx, 0x290
lea edi, [edx + ebx + 0x13b4]
push 1
lea eax, [esp + 0x30]
lea edx, [esp + 0x18]
call fcn.0043ea60
mov eax, dword [ebx + 0x3460c]
cmp eax, 0xffffffff
je 0x40e968
dec eax
cmp eax, 0xffffffff
je 0x40e968
shl eax, 4
add eax, 0x49bf60
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea edi, [ebx + 0x2084]
mov dword [esp + 0x18], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x20b8], esi
movzx eax, byte [edi + 0x3c]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [edi + 0x40]
shl eax, 8
mov dword [esp + 0x20], edx
movzx edx, byte [edi + 0x44]
or eax, ecx
shl eax, 8
or eax, edx
mov dword [edi + 0x48], eax
push 1
lea eax, [esp + 0x18]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0x294
mov dword [esp + 0x38], 0x320
mov dword [esp + 0x34], 0x19d
mov dword [esp + 0x3c], 0x1b7
mov dword [edi + 0x38], 0
call fcn.0043ea60
lea esi, [ebx + 0x345dc]
call fcn.0044e510
test al, al
jne 0x40e9e8
mov eax, dword [ebx + 0x34608]
mov ecx, dword [ebx + 0x34508]
mov edi, dword [ebx + 0x3450c]
lea edx, [eax + ecx + 0x14]
mov eax, dword [ebx + 0x344fc]
push eax
lea eax, [ebx + 0x93e4]
mov dword [esp + 0x44], edx
sub edi, 0xa
call fcn.00445570
mov ecx, dword [ebx + 0x34504]
push ecx
lea eax, [ebx + 0x93e4]
call fcn.004455b0
push 1
lea eax, [ebx + 0x93e4]
call fcn.004455d0
mov edx, dword [esp + 0x40]
push edi
push edx
push 0xffffffffffffffff
push ecx
lea edi, [ebx + 0x345dc]
call fcn.0044e810
add esp, 4
push eax
lea eax, [ebx + 0x93e4]
call fcn.00445550
cmp byte [ebx + 0x345c8], 0
je 0x40eaaa
push 0xffffffffffffffff
mov eax, ebx
call fcn.0040fc60
mov eax, dword [ebx + 0x34518]
add eax, dword [ebx + 0x34508]
lea edi, [ebx + 0x2084]
add eax, dword [0x4caa40]
xor esi, esi
mov dword [esp + 0x2c], eax
add eax, 0x3c
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x3451c]
add eax, dword [ebx + 0x3450c]
push 1
add eax, dword [0x4caa44]
mov dword [esp + 0x34], eax
add eax, 0x14
mov dword [esp + 0x3c], eax
mov eax, dword [ebx + 0x34600]
mov eax, dword [eax*4 + 0x49be80]
shl eax, 4
add eax, 0x49bc10
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x78], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x74], ecx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x20b8], 0xff
movzx eax, byte [edi + 0x3c]
mov dword [esp + 0x7c], ecx
movzx ecx, byte [edi + 0x40]
shl eax, 8
mov dword [esp + 0x80], edx
movzx edx, byte [edi + 0x44]
or eax, ecx
shl eax, 8
or eax, edx
mov dword [edi + 0x48], eax
lea eax, [esp + 0x74]
lea edx, [esp + 0x30]
mov dword [edi + 0x38], esi
call fcn.0043ea60
jmp 0x40eaba
mov eax, dword [ebx + 0x34604]
push eax
mov eax, ebx
call fcn.0040fc60
xor esi, esi
mov eax, dword [ebx + 0x34610]
cmp eax, 0xffffffff
je 0x40eb1b
xor ecx, ecx
cmp eax, esi
setne cl
push 1
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
shl ecx, 4
add ecx, 0x49c040
mov eax, ecx
mov edx, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x3c], eax
sub eax, edi
mov dword [esp + 0x38], ecx
sub ecx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], eax
lea edi, [ebx + 0x2084]
lea eax, [esp + 0x30]
lea edx, [esp + 0x18]
mov dword [esp + 0x20], ecx
call fcn.0043ea60
cmp byte [esp + 0x50], 0
je 0x40eb2b
push 1
mov ecx, ebx
call fcn.0040ebc0
lea esi, [ebx + 0x2f4]
call fcn.00443cb0
lea esi, [ebx + 0x2f4]
call fcn.00443cd0
test al, al
jne 0x40eb5e
cmp dword [ebx + 0x364], 0x88760868
mov byte [ebx + 0xa427e], al
jne 0x40eb5e
mov byte [ebx + 0xa427e], 1
lea ecx, [esp + 0x94]
mov dword [esp + 0x1f0], 0xffffffff
call fcn.0044e300
mov ecx, dword [esp + 0x1e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1d0]
xor ecx, esp
call fcn.004543d6
mov esp, ebp
pop ebp
ret 8