Function at 0x40dfb0
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x70bdae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebx
lea ecx, [esp + 0x74]
mov dword [esp + 0x260], ebx
mov byte [esp + 0x70], 1
call fcn.004eca57
lea ecx, [esp + 0x80]
mov byte [esp + 0x260], 1
call fcn.004eca57
lea ecx, [esp + 0x8c]
mov byte [esp + 0x260], 2
call fcn.004eca57
mov dword [esp + 0x60], ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov byte [esp + 0x6c], 1
mov dword [esp + 0x2c], ebx
push fcn.00409230
push fcn.004125d0
push 2
lea eax, [esp + 0x3c]
push 4
push eax
mov byte [esp + 0x274], 5
call fcn.00450073
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], 1
mov ebp, dword [esp + 0x270]
mov byte [esp + 0x260], 6
cmp ebp, ebx
je 0x40e0a5
mov ecx, dword [ebp]
lea edx, [esp + 0x1c]
push edx
push 0x726ce8
push ebp
call dword [ecx]
mov eax, dword [ebp]
lea ecx, [esp + 0x48]
push ecx
push 0x726c88
push ebp
call dword [eax]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xac], ebx
mov esi, dword [esp + 0x268]
or eax, 0xffffffff
mov dword [esp + 0xd8], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xc8], ebx
mov dword [esp + 0xcc], ebx
mov byte [esp + 0x13], 0
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x34]
mov byte [esp + 0x260], 8
cmp eax, ebx
jne 0x40e124
cmp esi, ebx
je 0x40e11b
mov edx, dword [esi]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x40e11b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], esi
jmp 0x40e40b
cmp dword [esp + 0x1c], ebx
je 0x40f015
cmp eax, 1
jne 0x40e3a2
lea ecx, [esp + 0xf4]
call fcn.004eca57
mov word [esp + 0x16c], bx
mov word [esp + 0x16e], bx
mov dword [esp + 0x174], ebx
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x16c]
push ecx
push 4
mov edx, dword [eax]
push eax
mov byte [esp + 0x26c], 0xa
call dword [edx + 0xc]
mov esi, eax
cmp esi, ebx
jne 0x40f022
cmp word [esp + 0x16c], 8
jne 0x40f14a
mov edx, dword [esp + 0x174]
lea ecx, [esp + 0xf4]
push edx
call fcn.004eccf7
lea ecx, [esp + 0x16c]
mov byte [esp + 0x260], 9
call fcn.004ea479
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0xf4]
push ecx
mov byte [esp + 0x74], 1
mov dword [esp + 0x94], ebx
lea ecx, [esp + 0xe8]
mov word [eax], bx
call fcn.004ecc41
push 0x2e
lea ecx, [esp + 0xf8]
mov byte [esp + 0x264], 0x11
call fcn.004ed2a2
mov esi, eax
cmp esi, ebx
jl 0x40e2a2
mov edx, dword [esp + 0xf4]
lea ecx, [esp + 0x218]
lea eax, [edx + esi*2 + 2]
push eax
call fcn.004ecb12
mov ecx, dword [esp + 0x218]
push 0x7733a8
push ecx
mov byte [esp + 0x268], 0x12
call fcn.004eb0fc
add esp, 8
test al, al
je 0x40e253
mov edx, dword [esp + 0xf4]
lea ecx, [esp + 0x8c]
lea eax, [edx + esi*2]
push eax
call fcn.004eccf7
jmp 0x40e27d
mov ecx, dword [esp + 0x218]
push 0x773584
push ecx
call fcn.004eb0fc
add esp, 8
test al, al
je 0x40e28a
push 0x77349c
lea ecx, [esp + 0x90]
call fcn.004ecf48
push esi
lea ecx, [esp + 0xe8]
call fcn.0040fa70
mov edx, dword [esp + 0x218]
mov byte [esp + 0x260], 0x11
push edx
call fcn.0044f656
add esp, 4
mov edi, dword [esp + 0xe8]
mov edx, dword [esp + 0xe4]
cmp edi, ebx
je 0x40e2cf
lea ecx, [edx + edi*2 - 2]
mov ax, word [ecx]
cmp ax, 0x30
jb 0x40e2c7
cmp ax, 0x39
jbe 0x40e2cf
dec edi
sub ecx, 2
cmp edi, ebx
jne 0x40e2b8
cmp edi, ebx
mov esi, edi
je 0x40e335
lea ecx, [edx + edi*2 - 2]
mov ax, word [ecx]
cmp ax, 0x30
jb 0x40e2f0
cmp ax, 0x39
ja 0x40e2f0
dec esi
sub ecx, 2
cmp esi, ebx
jne 0x40e2d9
cmp esi, edi
je 0x40e335
push esi
push edx
lea ecx, [esp + 0x7c]
call fcn.004ece18
mov ecx, dword [esp + 0xe4]
mov eax, edi
sub eax, esi
lea edx, [ecx + esi*2]
push eax
push edx
lea ecx, [esp + 0x88]
call fcn.004ece18
mov eax, dword [esp + 0xe4]
lea ecx, [eax + edi*2]
push ecx
push ebx
lea ecx, [esp + 0x94]
call fcn.004ed4ce
jmp 0x40e376
mov eax, dword [esp + 0x8c]
lea ecx, [esp + 0xe4]
push ecx
mov dword [esp + 0x94], ebx
lea ecx, [esp + 0x78]
mov word [eax], bx
call fcn.004ecd83
lea ecx, [esp + 0x74]
call fcn.004ed01a
push 0x773580
lea ecx, [esp + 0x84]
call fcn.004ecf48
mov byte [esp + 0x70], 0
mov edx, dword [esp + 0xe4]
push edx
call fcn.0044f656
mov eax, dword [esp + 0xf8]
add esp, 4
mov byte [esp + 0x260], 8
push eax
call fcn.0044f656
mov edi, dword [esp + 0x1c]
add esp, 4
lea ecx, [esp + 0x1ec]
push ecx
lea ecx, [esp + 0x74]
call fcn.0040fa90
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1f0]
mov edx, dword [eax]
push ecx
push eax
mov byte [esp + 0x26c], 0x13
call dword [edx + 0x10]
mov esi, eax
cmp esi, ebx
je 0x40e3e1
cmp esi, 1
jne 0x40f185
cmp dword [esp + 0x14], ebx
je 0x40f99a
cmp esi, ebx
jne 0x40f99a
mov edx, dword [esp + 0x1ec]
mov byte [esp + 0x260], 8
push edx
call fcn.0044f656
add esp, 4
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
lea ecx, [esp + 0xb8]
push eax
push ecx
push edx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.004fe9ba
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40f22a
cmp ebp, ebx
je 0x40e47d
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0xdc]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xe0]
add esi, eax
lea eax, [esp + 0xdc]
adc edx, ecx
push eax
mov dword [esp + 0xe4], edx
mov edx, dword [ebp]
push ebx
push ebp
mov dword [esp + 0xe8], esi
call dword [edx + 0xc]
mov esi, eax
cmp esi, ebx
jne 0x40f2bf
lea ecx, [esp + 0x1b4]
mov dword [esp + 0x17c], ebx
mov dword [esp + 0x180], ebx
mov dword [esp + 0x184], ebx
mov dword [esp + 0x188], ebx
mov dword [esp + 0x18c], ebx
mov dword [esp + 0x190], ebx
mov dword [esp + 0x194], ebx
mov dword [esp + 0x198], ebx
mov dword [esp + 0x19c], ebx
mov dword [esp + 0x1a0], ebx
mov byte [esp + 0x1a4], 0
mov byte [esp + 0x1a5], 0
mov byte [esp + 0x1a6], 0
mov byte [esp + 0x1a7], 0
mov byte [esp + 0x1a8], 0
mov byte [esp + 0x1a9], 0
mov byte [esp + 0x1aa], 0
mov byte [esp + 0x1ab], 0
mov byte [esp + 0x1ac], 0
call fcn.0040fc30
lea ecx, [esp + 0x1cc]
call fcn.0040fc50
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x26c]
lea ecx, [esp + 0x17c]
mov byte [esp + 0x260], 0x26
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
lea ecx, [esp + 0xa8]
call fcn.0040b120
mov esi, eax
mov al, byte [esp + 0xb2]
test al, al
je 0x40e56d
mov cl, byte [esp + 0xb3]
test cl, cl
je 0x40e56d
or dword [edi + 0x48], 0x20
cmp dword [edi + 0x34], ebx
jne 0x40e575
mov byte [edi + 0x10], al
cmp esi, ebx
jne 0x40f354
lea esi, [edi + 0x30]
mov ecx, esi
call fcn.00412ad0
push 0x78
call fcn.0044f661
add esp, 4
mov dword [esp + 0xf0], eax
cmp eax, ebx
mov byte [esp + 0x260], 0x33
je 0x40e5af
mov ecx, eax
call fcn.00412880
mov ebp, eax
jmp 0x40e5b1
xor ebp, ebp
push ebp
mov ecx, esi
mov byte [esp + 0x264], 0x26
call fcn.00412b70
mov edx, dword [esp + 0x17c]
lea edi, [ebp + 0x40]
mov dword [ebp + 8], edx
mov eax, dword [esp + 0x180]
mov dword [ebp + 0xc], eax
mov ecx, dword [esp + 0x184]
mov dword [ebp + 0x10], ecx
mov edx, dword [esp + 0x188]
mov dword [ebp + 0x14], edx
mov eax, dword [esp + 0x18c]
mov dword [ebp + 0x18], eax
mov ecx, dword [esp + 0x190]
mov dword [ebp + 0x1c], ecx
mov edx, dword [esp + 0x194]
mov dword [ebp + 0x20], edx
mov eax, dword [esp + 0x198]
mov dword [ebp + 0x24], eax
mov ecx, dword [esp + 0x19c]
lea eax, [ebp + 0x28]
lea esi, [esp + 0x1b4]
mov dword [esp + 0x100], eax
mov dword [eax], ecx
mov edx, dword [esp + 0x1a0]
mov dword [eax + 4], edx
mov al, byte [esp + 0x1a4]
mov byte [ebp + 0x30], al
mov cl, byte [esp + 0x1a5]
mov byte [ebp + 0x31], cl
mov dl, byte [esp + 0x1a6]
mov byte [ebp + 0x32], dl
mov al, byte [esp + 0x1a7]
mov byte [ebp + 0x33], al
mov cl, byte [esp + 0x1a8]
mov byte [ebp + 0x34], cl
mov dl, byte [esp + 0x1a9]
mov byte [ebp + 0x35], dl
mov al, byte [esp + 0x1aa]
mov byte [ebp + 0x36], al
mov cl, byte [esp + 0x1ab]
mov byte [ebp + 0x37], cl
mov dl, byte [esp + 0x1ac]
mov ecx, 6
mov byte [ebp + 0x38], dl
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1cc]
lea ecx, [ebp + 0x58]
push eax
call fcn.0040fdd0
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.004094d0
lea ecx, [esp + 0x114]
call fcn.004eb948
mov dword [esp + 0x138], ebx
mov dword [esp + 0x13c], ebx
lea ecx, [esp + 0x104]
mov byte [esp + 0x260], 0x35
call fcn.0040fb60
mov edi, dword [esp + 0x18]
mov byte [esp + 0x260], 0x36
or esi, 0xffffffff
mov edx, dword [esp + 0x114]
mov dword [esp + 0x120], ebx
mov dword [esp + 0x124], esi
mov byte [esp + 0x10d], 0
mov dword [esp + 0x164], ebx
mov dword [esp + 0x168], ebx
mov dword [esp + 0x118], ebx
lea ecx, [esp + 0x138]
mov byte [edx], 0
call fcn.004125a0
mov eax, dword [esp + 0xc0]
mov dword [esp + 0x110], esi
mov dword [ebp + 0x20], eax
mov ecx, dword [esp + 0xc4]
mov dword [ebp + 0x24], ecx
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0xc0]
cmp eax, ecx
ja 0x40edd1
jb 0x40e774
cmp edx, dword [esp + 0x24]
ja 0x40edd1
mov ecx, dword [esp + 0x14]
push ebx
push ebx
push eax
mov esi, dword [ecx]
push edx
push ecx
call dword [esi + 0x10]
mov esi, eax
cmp esi, ebx
jne 0x40f578
lea edx, [esp + 0x238]
lea ecx, [esp + 0x98]
push edx
call fcn.0040ab40
mov esi, eax
cmp esi, ebx
jne 0x40edde
mov eax, dword [esp + 0x238]
mov ecx, dword [esp + 0x23c]
cmp eax, 5
jne 0x40e7c5
cmp ecx, ebx
je 0x40ee59
cmp eax, 2
jne 0x40e7ce
cmp ecx, ebx
je 0x40e7df
cmp eax, 3
jne 0x40ef55
cmp ecx, ebx
jne 0x40ef55
mov byte [esp + 0x10c], al
lea eax, [esp + 0x104]
lea ecx, [esp + 0x238]
push eax
push ecx
lea ecx, [esp + 0xa0]
call fcn.0040b640
test al, al
je 0x40ef60
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0xc4]
mov dword [esp + 0x15c], eax
mov dword [esp + 0x160], edx
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0xc4]
mov dword [ebp + 0x24], eax
mov ebx, dword [esp + 0x14c]
mov esi, dword [esp + 0xc0]
mov edi, dword [esp + 0x150]
mov edx, dword [esp + 0xc4]
mov ecx, ebx
add ecx, esi
mov eax, edi
adc eax, edx
mov byte [esp + 0x22], 1
cmp eax, edx
ja 0x40e8aa
jb 0x40e866
cmp ecx, esi
jae 0x40e8aa
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x28]
mov byte [esp + 0x22], 0
mov edx, dword [ecx + 0x48]
or edx, 2
mov dword [ecx + 0x48], edx
mov edx, dword [ebp + 0x24]
cmp edx, eax
mov eax, dword [esp + 0x24]
ja 0x40e8db
jb 0x40e890
mov edx, dword [ebp + 0x20]
cmp edx, eax
jae 0x40e8db
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x24], eax
mov edi, dword [esp + 0x150]
mov ebx, dword [esp + 0x14c]
jmp 0x40e8db
add esi, ebx
adc edx, edi
mov dword [esp + 0xc0], esi
mov dword [esp + 0xc4], edx
mov dword [ebp + 0x20], esi
mov ecx, dword [esp + 0xc4]
mov dword [ebp + 0x24], ecx
mov edi, dword [esp + 0x150]
mov ebx, dword [esp + 0x14c]
mov ecx, dword [esp + 0x18]
mov al, byte [ecx + 0x13]
mov byte [esp + 0x13], 1
test al, al
jne 0x40e9b0
mov eax, dword [ecx + 0x7c]
test eax, eax
jne 0x40e9b0
cmp byte [esp + 0x10c], 3
jne 0x40e9b0
mov eax, dword [esp + 0x114]
mov esi, 0x77357c
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40e934
test cl, cl
je 0x40e930
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40e934
add eax, 2
add esi, 2
test cl, cl
jne 0x40e910
xor eax, eax
jmp 0x40e939
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40e9b0
mov eax, dword [esp + 0x18]
test edi, edi
mov byte [eax + 0x13], 1
ja 0x40e9b0
jb 0x40e953
cmp ebx, 0x40000
ja 0x40e9b0
cmp ebx, dword [esp + 0x144]
jne 0x40e9b0
cmp edi, dword [esp + 0x148]
jne 0x40e9b0
mov ecx, ebx
or ecx, edi
je 0x40e9b0
test dword [esp + 0x134], 0x380
jne 0x40e9b0
test byte [esp + 0x104], 0x18
jne 0x40e9b0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
add edx, 0x78
lea ecx, [esp + 0x104]
push edx
push eax
push edi
push ebx
push ecx
lea ecx, [esp + 0x40]
call fcn.0040bf80
mov esi, eax
test esi, esi
jne 0x40f84d
mov byte [esp + 0x13], al
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x28]
mov dword [esp + 0xf0], eax
or eax, 0xffffffff
mov dword [esp + 0x22c], eax
mov dword [esp + 0x230], eax
mov al, byte [esp + 0x13]
test al, al
je 0x40eca9
cmp byte [esp + 0x10c], 3
jne 0x40ea33
mov edi, dword [esp + 0x114]
mov esi, 0x773564
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40ea1b
test cl, cl
je 0x40ea17
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40ea1b
add eax, 2
add esi, 2
test cl, cl
jne 0x40e9f3
xor eax, eax
jmp 0x40ea20
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ea94
mov eax, dword [esp + 0x5c]
test eax, eax
jl 0x40ea33
mov dword [esp + 0x22c], eax
mov edx, dword [esp + 0x104]
shr edx, 3
test dl, 1
je 0x40ec78
mov eax, dword [esp + 0xd8]
test eax, eax
jl 0x40ec70
mov ebx, dword [esp + 0x18]
mov esi, eax
shl esi, 4
mov edi, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x24]
add esi, edi
mov eax, dword [esi + 4]
mov edi, dword [ecx + eax*4]
lea ecx, [esp + 0x104]
push edi
call fcn.0040fbb0
test al, al
je 0x40ec78
mov eax, dword [ebx + 0x28]
mov byte [esp + 0x13], 0
mov dword [esi + 4], eax
mov dword [edi + 0x20], eax
jmp 0x40eca9
mov byte [esp + 0x13], 0
mov esi, 0x7734cc
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40eac8
test cl, cl
je 0x40eac4
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40eac8
add eax, 2
add esi, 2
test cl, cl
jne 0x40eaa0
xor eax, eax
jmp 0x40eacd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40eca9
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x234]
push eax
push 1
lea ecx, [esp + 0x10c]
mov byte [esi + 0x14], 1
call fcn.0040a1c0
mov ecx, dword [esp + 0x148]
test eax, eax
mov eax, dword [esp + 0x144]
jl 0x40eb10
mov dl, byte [esp + 0xb0]
test dl, dl
je 0x40eb3a
mov edx, dword [esp + 0x134]
shr edx, 6
test dl, 1
jne 0x40eb3a
mov edx, dword [esp + 0x5c]
test edx, edx
jl 0x40eb3a
test ecx, ecx
ja 0x40eb3a
jb 0x40eb34
cmp eax, 0x1000000
jae 0x40eb3a
mov edx, eax
or edx, ecx
jne 0x40eb3e
mov byte [esi + 0x15], 1
mov edx, dword [esp + 0x5c]
test edx, edx
jl 0x40eca9
test ecx, ecx
ja 0x40eca9
jb 0x40eb5f
cmp eax, 0x1000000
jae 0x40eca9
or eax, ecx
je 0x40eca9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x5c]
shl ecx, 4
mov edx, dword [eax + 0x18]
mov ecx, dword [ecx + edx]
mov edx, dword [eax + 0x24]
mov edi, dword [edx + ecx*4]
mov eax, dword [edi + 0xc]
test eax, eax
jge 0x40eca9
xor ebx, ebx
mov dword [esp + 0xd0], ebx
mov dword [esp + 0xd4], ebx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xd0]
lea ecx, [esp + 0x2c]
push eax
push ecx
lea eax, [esp + 0x10c]
push edx
push eax
lea ecx, [esp + 0x70]
mov byte [esp + 0x270], 0x49
call fcn.0040c1b0
mov ecx, dword [esp + 0x104]
mov esi, eax
shr ecx, 4
test cl, 1
jne 0x40ebde
mov dword [esp + 0x68], ebx
mov byte [esp + 0x6c], 1
cmp esi, ebx
je 0x40ec06
cmp esi, 1
mov dword [esp + 0x68], ebx
mov byte [esp + 0x6c], 1
je 0x40ebfc
cmp esi, 0x80004001
jne 0x40f83d
mov edx, dword [esp + 0x18]
mov byte [edx + 0x15], 1
jmp 0x40ec56
cmp dword [esp + 0xd4], ebx
je 0x40ec56
mov ebx, dword [esp + 0x18]
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x40ec36
mov ecx, dword [ebx + 0x3c]
lea edx, [esp + 0xd0]
mov eax, dword [ecx + eax*4 - 4]
push eax
push edx
call fcn.00412e00
add esp, 8
test al, al
je 0x40ec4f
lea esi, [ebx + 0x3c]
mov ecx, esi
call fcn.00412ad0
lea eax, [esp + 0xd0]
mov ecx, esi
push eax
call fcn.00412cd0
mov eax, dword [ebx + 0x40]
dec eax
mov dword [edi + 0xc], eax
mov ecx, dword [esp + 0xd0]
mov byte [esp + 0x260], 0x36
push ecx
call fcn.0044f656
add esp, 4
jmp 0x40eca9
mov edx, dword [esp + 0x18]
mov byte [edx + 0x16], 1
mov eax, dword [esp + 0x104]
shr eax, 4
test al, 1
je 0x40ec94
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x1c]
mov dword [esp + 0xd8], edx
cmp byte [esp + 0x10c], 3
je 0x40eca9
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x5c], ecx
lea edx, [esp + 0x1f8]
lea ecx, [esp + 0x104]
push edx
call fcn.0040a5f0
test al, al
je 0x40ece5
mov eax, dword [esp + 0x1f8]
mov ecx, dword [esp + 0x1fc]
mov byte [esp + 0x10d], 1
mov dword [esp + 0x164], eax
mov dword [esp + 0x168], ecx
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x34]
lea esi, [edi + 0x24]
dec eax
mov ecx, esi
mov dword [esp + 0x120], eax
call fcn.00412ad0
lea edx, [esp + 0x104]
mov ecx, esi
push edx
call fcn.00412b90
mov al, byte [esp + 0x13]
test al, al
je 0x40ed42
mov eax, dword [esp + 0xf0]
sub esp, 0x10
mov edx, dword [esp + 0x23c]
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x240]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [edi + 0x18]
call fcn.004125f0
mov ecx, dword [esp + 0x270]
test ecx, ecx
je 0x40edb7
mov al, byte [edi + 0x28]
test al, al
jne 0x40edb7
mov eax, dword [edi + 0x1c]
mov edx, dword [esp + 0x15c]
mov edi, dword [esp + 0xc8]
mov esi, dword [esp + 0xcc]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x160]
add edx, edi
mov dword [esp + 0x204], 0
adc eax, esi
mov dword [esp + 0x208], edx
mov edx, dword [ecx]
mov dword [esp + 0x20c], eax
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x204]
push eax
push ecx
call dword [edx + 0x10]
mov esi, eax
test esi, esi
jne 0x40f8ae
mov al, byte [esp + 0x22]
test al, al
je 0x40ef6a
mov edi, dword [esp + 0x18]
or esi, 0xffffffff
xor ebx, ebx
jmp 0x40e6f2
mov eax, dword [edi + 0x48]
or al, 0x20
mov dword [edi + 0x48], eax
jmp 0x40ef6c
cmp esi, 1
jne 0x40f637
mov al, byte [esp + 0xb3]
test al, al
je 0x40ef60
mov ecx, dword [edi + 0x48]
mov eax, dword [esp + 0xc4]
or ecx, 0x20
mov dword [edi + 0x48], ecx
mov ecx, dword [ebp + 0x24]
cmp ecx, eax
mov eax, dword [esp + 0xc0]
ja 0x40ee2a
jb 0x40ee1d
mov edx, dword [ebp + 0x20]
cmp edx, eax
jae 0x40ee2a
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0xc4]
mov dword [ebp + 0x24], eax
mov ecx, dword [ebp + 0x24]
mov eax, dword [esp + 0x28]
cmp ecx, eax
mov eax, dword [esp + 0x24]
ja 0x40ef6c
jb 0x40ee4a
mov edx, dword [ebp + 0x20]
cmp edx, eax
jae 0x40ef6c
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x24], eax
jmp 0x40ef6c
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0x100]
mov dword [ebp + 0x20], ecx
mov edx, dword [esp + 0xc4]
push eax
lea ecx, [esp + 0x9c]
mov dword [ebp + 0x24], edx
mov byte [ebp + 0x30], 1
call fcn.0040aac0
test al, al
jne 0x40ee91
mov eax, dword [edi + 0x48]
or al, 2
mov dword [edi + 0x48], eax
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0xa0]
cmp ecx, eax
jne 0x40eebe
cmp dword [esp + 0x248], ebx
jne 0x40eebe
mov edx, dword [esp + 0x250]
mov eax, dword [esp + 0x254]
or edx, eax
je 0x40eec2
mov byte [ebp + 0x38], 1
mov eax, dword [ebp + 8]
xor ecx, ecx
and eax, 1
or eax, ecx
je 0x40ef6a
mov ecx, dword [ebp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [ebp + 0x20]
push ebx
mov esi, dword [edx]
push ebx
push ecx
push eax
push edx
call dword [esi + 0x10]
mov esi, eax
cmp esi, ebx
jne 0x40f6f6
mov edx, dword [esp + 0x14]
push ebx
lea eax, [esp + 0x214]
push 0x1000
lea ecx, [esp + 0x2b]
push eax
push ecx
push edx
call fcn.0050ae7b
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0x40f7d9
mov al, byte [esp + 0x23]
test al, al
jne 0x40ef6a
mov eax, dword [esp + 0x210]
mov ecx, dword [esp + 0x214]
mov edx, eax
or edx, ecx
je 0x40ef6a
cmp ecx, ebx
ja 0x40ef6a
jb 0x40ef43
cmp eax, 0x1000
ja 0x40ef6a
mov edx, dword [ebp + 0x20]
add edx, eax
mov dword [ebp + 0x20], edx
mov eax, dword [ebp + 0x24]
adc eax, ecx
mov dword [ebp + 0x24], eax
jmp 0x40ef6c
mov eax, dword [edi + 0x48]
or ah, 1
mov dword [edi + 0x48], eax
jmp 0x40ef6c
mov eax, dword [edi + 0x48]
or al, 2
mov dword [edi + 0x48], eax
jmp 0x40ef6c
xor ebx, ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0xc8]
mov edi, dword [esp + 0xcc]
add ecx, eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc8], ecx
mov ecx, dword [esp + 0x28]
mov byte [esp + 0x13], 0
adc edi, ecx
and eax, 1
xor ecx, ecx
mov dword [esp + 0xcc], edi
or eax, ecx
je 0x40f941
mov al, byte [ebp + 0x30]
test al, al
je 0x40efc9
mov edx, dword [esp + 0x100]
mov eax, dword [edx]
and eax, 1
or eax, ecx
je 0x40f95f
mov byte [esp + 0x13], 1
lea ecx, [esp + 0x104]
mov byte [esp + 0x260], 0x26
call fcn.0040fdb0
mov eax, dword [esp + 0x1dc]
push eax
call fcn.0044f656
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 7
call fcn.00409230
mov esi, dword [esp + 0x268]
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x270]
jmp 0x40e0f0
mov byte [esp + 0x260], 7
jmp 0x40f9db
lea ecx, [esp + 0x16c]
call fcn.004ea479
mov ecx, dword [esp + 0xf4]
push ecx
call fcn.0044f656
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x260], 7
je 0x40f054
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0xac]
mov byte [esp + 0x260], 0xb
call fcn.00409230
mov eax, dword [esp + 0x98]
push eax
call fcn.004deaf6
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x264], 0x10
push ecx
call fcn.0044f656
add esp, 8
lea ecx, [esp + 0x4c]
call fcn.00409230
lea ecx, [esp + 0x48]
mov byte [esp + 0x260], 0xf
call fcn.00409230
lea ecx, [esp + 0x44]
mov byte [esp + 0x260], 0xe
call fcn.00409230
lea ecx, [esp + 0x40]
mov byte [esp + 0x260], 0xd
call fcn.00409230
mov byte [esp + 0x260], 0xc
push fcn.00409230
push 2
lea edx, [esp + 0x38]
push 4
push edx
call fcn.0044ff95
lea ecx, [esp + 0x2c]
mov byte [esp + 0x260], 4
call fcn.00409230
mov eax, dword [esp + 0x60]
push eax
call fcn.0044f656
mov ecx, dword [esp + 0x90]
push ecx
call fcn.0044f656
mov edx, dword [esp + 0x88]
push edx
call fcn.0044f656
mov eax, dword [esp + 0x80]
push eax
call fcn.0044f656
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x260], 0xffffffff
je 0x40f93a
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x40fa3b
lea ecx, [esp + 0x16c]
call fcn.004ea479
mov edx, dword [esp + 0xf4]
push edx
call fcn.0044f656
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x260], 7
je 0x40f9db
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x40f9db
mov edx, dword [esp + 0x1ec]
push edx
call fcn.0044f656
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x260], 7
je 0x40f1ab
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xac]
mov byte [esp + 0x260], 0x14
call fcn.00409230
mov edx, dword [esp + 0x98]
push edx
call fcn.004deaf6
mov eax, dword [esp + 0x54]
mov byte [esp + 0x264], 0x19
push eax
call fcn.0044f656
add esp, 8
lea ecx, [esp + 0x4c]
call fcn.00409230
lea ecx, [esp + 0x48]
mov byte [esp + 0x260], 0x18
call fcn.00409230
lea ecx, [esp + 0x44]
mov byte [esp + 0x260], 0x17
call fcn.00409230
lea ecx, [esp + 0x40]
mov byte [esp + 0x260], 0x16
call fcn.00409230
mov byte [esp + 0x260], 0x15
jmp 0x40f3fd
mov eax, dword [esp + 0x14]
mov byte [esp + 0x260], 7
cmp eax, ebx
je 0x40f240
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0xac]
mov byte [esp + 0x260], 0x1a
call fcn.00409230
mov eax, dword [esp + 0x98]
push eax
call fcn.004deaf6
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x264], 0x1f
push ecx
call fcn.0044f656
add esp, 8
lea ecx, [esp + 0x4c]
call fcn.00409230
lea ecx, [esp + 0x48]
mov byte [esp + 0x260], 0x1e
call fcn.00409230
lea ecx, [esp + 0x44]
mov byte [esp + 0x260], 0x1d
call fcn.00409230
lea ecx, [esp + 0x40]
mov byte [esp + 0x260], 0x1c
call fcn.00409230
mov byte [esp + 0x260], 0x1b
jmp 0x40f0ce
mov eax, dword [esp + 0x14]
mov byte [esp + 0x260], 7
cmp eax, ebx
je 0x40f2d5
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0xac]
mov byte [esp + 0x260], 0x20
call fcn.00409230
mov eax, dword [esp + 0x98]
push eax
call fcn.004deaf6
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x264], 0x25
push ecx
call fcn.0044f656
add esp, 8
lea ecx, [esp + 0x4c]
call fcn.00409230
lea ecx, [esp + 0x48]
mov byte [esp + 0x260], 0x24
call fcn.00409230
lea ecx, [esp + 0x44]
mov byte [esp + 0x260], 0x23
call fcn.00409230
lea ecx, [esp + 0x40]
mov byte [esp + 0x260], 0x22
call fcn.00409230
mov byte [esp + 0x260], 0x21
jmp 0x40f0ce
cmp esi, 1
je 0x40f452
mov edx, dword [esp + 0x1dc]
push edx
call fcn.0044f656
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x260], 7
je 0x40f383
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xac]
mov byte [esp + 0x260], 0x27
call fcn.00409230
mov edx, dword [esp + 0x98]
push edx
call fcn.004deaf6
mov eax, dword [esp + 0x54]
mov byte [esp + 0x264], 0x2c
push eax
call fcn.0044f656
add esp, 8
lea ecx, [esp + 0x4c]
call fcn.00409230
lea ecx, [esp + 0x48]
mov byte [esp + 0x260], 0x2b
call fcn.00409230
lea ecx, [esp + 0x44]
mov byte [esp + 0x260], 0x2a
call fcn.00409230
lea ecx, [esp + 0x40]
mov byte [esp + 0x260], 0x29
call fcn.00409230
mov byte [esp + 0x260], 0x28
push fcn.00409230
push 2
lea ecx, [esp + 0x38]
push 4
push ecx
call fcn.0044ff95
lea ecx, [esp + 0x2c]
mov byte [esp + 0x260], 4
call fcn.00409230
mov edx, dword [esp + 0x60]
push edx
call fcn.0044f656
mov eax, dword [esp + 0x90]
push eax
call fcn.0044f656
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0044f656
mov edx, dword [esp + 0x80]
push edx
jmp 0x40f11e
mov eax, dword [edi + 0x34]
mov edx, dword [esp + 0x1dc]
cmp eax, ebx
push edx
jne 0x40f15e
call fcn.0044f656
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x260], 7
je 0x40f483
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea ecx, [esp + 0xac]
mov byte [esp + 0x260], 0x2d
call fcn.00409230
mov edx, dword [esp + 0x98]
push edx
call fcn.004deaf6
mov eax, dword [esp + 0x54]
mov byte [esp + 0x264], 0x32
push eax
call fcn.0044f656
add esp, 8
lea ecx, [esp + 0x4c]
call fcn.00409230
lea ecx, [esp + 0x48]
mov byte [esp + 0x260], 0x31
call fcn.00409230
lea ecx, [esp + 0x44]
mov byte [esp + 0x260], 0x30
call fcn.00409230
lea ecx, [esp + 0x40]
mov byte [esp + 0x260], 0x2f
call fcn.00409230
push fcn.00409230
push 2
lea ecx, [esp + 0x38]
push 4
push ecx
mov byte [esp + 0x270], 0x2e
call fcn.0044ff95
lea ecx, [esp + 0x2c]
mov byte [esp + 0x260], 4
call fcn.00409230
mov edx, dword [esp + 0x60]
push edx
call fcn.0044f656
mov eax, dword [esp + 0x90]
push eax
call fcn.0044f656
mov ecx, dword [esp + 0x88]
push ecx
call fcn.0044f656
mov edx, dword [esp + 0x80]
push edx
call fcn.0044f656
mov eax, dword [esp + 0x2c]
add esp, 0x10
cmp eax, ebx
mov dword [esp + 0x260], 0xffffffff
je 0x40f56e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, 1
jmp 0x40fa3b
mov edx, dword [esp + 0x138]
push edx
call fcn.0044f656
mov eax, dword [esp + 0x118]
push eax
call fcn.0044f656
mov ecx, dword [esp + 0x1e4]
push ecx
call fcn.0044f656
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0x260], 7
je 0x40f5b8
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0xac]
mov byte [esp + 0x260], 0x37
call fcn.00409230
mov eax, dword [esp + 0x98]
push eax
call fcn.004deaf6
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x264], 0x3c
push ecx
call fcn.0044f656
add esp, 8
lea ecx, [esp + 0x4c]
call fcn.00409230
lea ecx, [esp + 0x48]
mov byte [esp + 0x260], 0x3b
call fcn.00409230
lea ecx, [esp + 0x44]
mov byte [esp + 0x260], 0x3a
call fcn.00409230
lea ecx, [esp + 0x40]
mov byte [esp + 0x260], 0x39
call fcn.00409230
mov byte [esp + 0x260], 0x38
jmp 0x40f0ce
mov edx, dword [esp + 0x138]
push edx
call fcn.0044f656
mov eax, dword [esp + 0x118]
push eax
call fcn.0044f656
mov ecx, dword [esp + 0x1e4]
push ecx
call fcn.0044f656
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0x260], 7
je 0x40f677
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0xac]
mov byte [esp + 0x260], 0x3d
call fcn.00409230
mov eax, dword [esp + 0x98]
push eax
call fcn.004deaf6
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x264], 0x42
push ecx
call fcn.0044f656
add esp, 8
lea ecx, [esp + 0x4c]
call fcn.00409230
lea ecx, [esp + 0x48]
mov byte [esp + 0x260], 0x41
call fcn.00409230
lea ecx, [esp + 0x44]
mov byte [esp + 0x260], 0x40
call fcn.00409230
lea ecx, [esp + 0x40]
mov byte [esp + 0x260], 0x3f
call fcn.00409230
mov byte [esp + 0x260], 0x3e
jmp 0x40f0ce
mov edx, dword [esp + 0x138]
push edx
call fcn.0044f656
mov eax, dword [esp + 0x118]
push eax
call fcn.0044f656
mov ecx, dword [esp + 0x1e4]
push ecx
call fcn.0044f656
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
mov byte [esp + 0x260], 7
je 0x40f736
mov edx, dword [eax]
push eax
call dword [edx + 8]
lea ecx, [esp + 0xac]
mov byte [esp + 0x260], 0x43
call fcn.00409230
mov eax, dword [esp + 0x98]
push eax
call fcn.004deaf6
mov ecx, dword [esp + 0x54]
mov byte [esp + 0x264], 0x48
push ecx
call fcn.0044f656
add esp, 8
lea ecx, [esp + 0x4c]
call fcn.00409230
lea ecx, [esp + 0x48]
mov byte [esp + 0x260], 0x47
call fcn.00409230
lea ecx, [esp + 0x44]
mov byte [esp + 0x260], 0x46
call fcn.00409230
lea ecx, [esp + 0x40]
mov byte [esp + 0x260], 0x45
call fcn.00409230
push fcn.00409230
push 2
lea edx, [esp + 0x38]
push 4
push edx
mov byte [esp + 0x270], 0x44
call fcn.0044ff95
lea ecx, [esp + 0x2c]
mov byte [esp + 0x260], 4
call fcn.00409230
jmp 0x40f908
lea ecx, [esp + 0x104]
mov byte [esp + 0x260], 0x26
call fcn.0040fdb0
mov ecx, dword [esp + 0x1dc]
push ecx
call fcn.0044f656
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 7
call fcn.00409230
lea ecx, [esp + 0x98]
mov byte [esp + 0x260], 6
call fcn.0040fd50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x260], 4
call fcn.0040fca0
mov edx, dword [esp + 0x60]
push edx
jmp 0x40f90d
mov edx, dword [esp + 0xd0]
push edx
call fcn.0044f656
add esp, 4
lea ecx, [esp + 0x104]
mov byte [esp + 0x260], 0x26
call fcn.0040fdb0
mov eax, dword [esp + 0x1dc]
push eax
call fcn.0044f656
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 7
call fcn.00409230
lea ecx, [esp + 0x98]
mov byte [esp + 0x260], 6
call fcn.0040fd50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x260], 4
call fcn.0040fca0
mov ecx, dword [esp + 0x60]
push ecx
jmp 0x40f90d
lea ecx, [esp + 0x104]
mov byte [esp + 0x260], 0x26
call fcn.0040fdb0
mov edx, dword [esp + 0x1dc]
push edx
call fcn.0044f656
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 7
call fcn.00409230
lea ecx, [esp + 0x98]
mov byte [esp + 0x260], 6
call fcn.0040fd50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x260], 4
call fcn.0040fca0
mov eax, dword [esp + 0x60]
push eax
call fcn.0044f656
add esp, 4
lea ecx, [esp + 0x70]
mov byte [esp + 0x260], 0
call fcn.0040fc70
lea ecx, [esp + 0x1c]
mov dword [esp + 0x260], 0xffffffff
call fcn.00409230
mov eax, esi
jmp 0x40fa3b
lea ecx, [esp + 0x104]
mov byte [esp + 0x260], 0x26
call fcn.0040fdb0
mov ecx, dword [esp + 0x1dc]
push ecx
jmp 0x40f97b
lea ecx, [esp + 0x104]
mov byte [esp + 0x260], 0x26
call fcn.0040fdb0
mov edx, dword [esp + 0x1dc]
push edx
call fcn.0044f656
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x260], 7
call fcn.00409230
mov edi, dword [esp + 0x18]
jmp 0x40f9db
mov al, byte [esp + 0x13]
test al, al
je 0x40f9b5
lea eax, [esp + 0x1ec]
lea ecx, [edi + 0x80]
push eax
call fcn.004ecd83
mov ecx, dword [esp + 0x1ec]
push ecx
call fcn.0044f656
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, ebx
mov byte [esp + 0x260], 7
je 0x40f9db
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov ecx, edi
call fcn.0040da70
lea ecx, [esp + 0x98]
mov byte [esp + 0x260], 6
call fcn.0040fd50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x260], 4
call fcn.0040fca0
mov eax, dword [esp + 0x60]
push eax
call fcn.0044f656
add esp, 4
lea ecx, [esp + 0x70]
mov byte [esp + 0x260], 0
call fcn.0040fc70
lea ecx, [esp + 0x1c]
mov dword [esp + 0x260], 0xffffffff
call fcn.00409230
xor eax, eax
mov ecx, dword [esp + 0x258]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x254
ret 0xc