Function at 0x40939a
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x6096af
call fcn.005fcaec
sub esp, 0xd4
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
xor ebx, ebx
cmp esi, 9
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], eax
jge 0x4093d0
lea eax, [esi*4 + 0x67f098]
jmp 0x4093e7
lea eax, [esi - 9]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.004f670d
mov dword [ebp - 0x2c], 1
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040a2e2
test byte [ebp - 0x2c], 1
mov dword [ebp - 4], ebx
je 0x409404
lea ecx, [ebp - 0xa0]
call fcn.00402b3a
mov eax, dword [ebp - 0x20]
shl eax, 8
or eax, esi
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x68]
lea ecx, [edi + 0x17c]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], ecx
call fcn.0040eeea
test eax, eax
je 0x409441
mov esi, dword [ebp - 0x14]
call dword [fcn.006802e8]
mov dword [esi + 0x2c], eax
jmp 0x409a32
push 0x38
mov ecx, 0x680528
call fcn.00402530
mov dword [ebp + 0xc], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x409461
mov ecx, eax
call fcn.0040a301
jmp 0x409463
xor eax, eax
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.0040d3c9
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x20]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
mov dword [ecx + 0x10], esi
push eax
mov ecx, edi
call fcn.0040a40f
cmp dword [ebp - 0x58], ebx
mov byte [ebp - 4], 3
jne 0x4094a5
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004b04ce
jmp 0x409c8f
push ebx
push ebx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.0040a2e2
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.004a35f6
mov ecx, eax
add ecx, 0xc
call fcn.00423f87
mov ecx, eax
call fcn.00404380
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00403885
cmp eax, ebx
mov dword [ebp - 0x48], eax
mov dword [ebp + 8], ebx
je 0x40950c
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 8]
call fcn.0040398f
cmp eax, ebx
jge 0x40950c
cmp eax, 0x80004002
je 0x40950c
push eax
call fcn.005fc540
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 7
call fcn.0040273a
cmp eax, ebx
pop ecx
jge 0x409527
push eax
call fcn.005fc540
cmp dword [ebp + 8], ebx
jne 0x409539
lea ecx, [ebp + 8]
call fcn.005acebb
jmp 0x409494
lea eax, [ebp - 0x78]
push eax
call dword [fcn.00635234]
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 8
jne 0x409556
push 0x80004003
call fcn.005fc540
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.0040444c
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.00402da6
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xb
call fcn.005acebb
mov dword [ebp - 0x98], ebx
mov edi, 0x6805c0
cmp dword [ebp - 0x2c], ebx
jne 0x409595
push 0x80004003
call fcn.005fc540
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
lea edx, [ebp - 0x98]
push edx
lea edx, [ebp - 0x78]
push edx
push 1
push eax
call dword [ecx + 0xc]
test eax, eax
jne 0x409913
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00404654
add esp, 4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], esp
mov ecx, esp
push eax
call fcn.0040a2e2
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xc
call fcn.00423f87
mov ecx, eax
call fcn.00404380
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 0xe
call fcn.0040e696
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.00505e09
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x11
call fcn.005acebb
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
je 0x4098df
lea eax, [ebp - 0x30]
push eax
call fcn.0040461c
push ebx
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
push 0x273
push eax
mov ecx, edi
mov byte [ebp - 4], 0x12
call fcn.00519b67
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x12
call fcn.00423f87
mov ecx, eax
call fcn.00404380
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.00403885
cmp eax, ebx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x1c], ebx
je 0x40969f
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0049738d
cmp eax, ebx
jge 0x40969f
cmp eax, 0x80004002
je 0x40969f
push eax
call fcn.005fc540
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 0x16
call fcn.0040273a
cmp eax, ebx
pop ecx
jge 0x4096ba
push eax
call fcn.005fc540
push ebx
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
push 0x274
push eax
mov ecx, edi
call fcn.00519b67
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x16
call fcn.00423f87
mov ecx, eax
call fcn.00404380
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.00403885
cmp eax, ebx
mov dword [ebp - 0x90], eax
mov dword [ebp + 0xc], ebx
je 0x409721
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp + 0xc]
call fcn.0049738d
cmp eax, ebx
jge 0x409721
cmp eax, 0x80004002
je 0x409721
push eax
call fcn.005fc540
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0x1a
call fcn.0040273a
cmp eax, ebx
pop ecx
jge 0x40973c
push eax
call fcn.005fc540
push 0x44
mov ecx, 0x680528
call fcn.00402530
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov byte [ebp - 4], 0x1b
je 0x40975e
mov ecx, eax
call fcn.0040a334
mov esi, eax
jmp 0x409760
xor esi, esi
push dword [ebp - 0x24]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0x1a
call fcn.00402473
push 0xb4
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
push 0x2f4
push eax
mov ecx, edi
call fcn.00519b67
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x1c
call fcn.00423f87
mov ecx, eax
call fcn.0040461c
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x1e
call fcn.00423f87
mov ecx, eax
call fcn.00404380
push eax
mov byte [ebp - 4], 0x1f
call fcn.0040e892
mov dword [esi + 0x40], eax
lea eax, [ebp - 0xb0]
push eax
mov byte [ebp - 4], 0x1e
call fcn.0040273a
add esp, 0xc
cmp eax, ebx
jge 0x4097e4
push eax
call fcn.005fc540
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x1a
call fcn.005acebb
push ebx
lea ecx, [ebp - 0x1c]
call fcn.0041db38
test al, al
jne 0x409886
push ebx
lea ecx, [ebp + 0xc]
call fcn.0041db38
test al, al
jne 0x409886
cmp dword [ebp + 0xc], ebx
mov edi, 0x80004003
jne 0x40982c
push edi
call fcn.005fc540
cmp dword [ebp + 0xc], ebx
jne 0x40982c
push edi
call fcn.005fc540
cmp dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
jne 0x40983d
push edi
call fcn.005fc540
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x40984d
push edi
call fcn.005fc540
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x1c]
call fcn.004045a7
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.00404580
mov ecx, dword [ebp - 0x28]
push eax
call fcn.004045a7
push eax
mov ecx, edi
call fcn.00404580
push eax
lea eax, [esi + 0x10]
push eax
call fcn.0040dc11
add esp, 0x14
mov edi, 0x6805c0
jmp 0x409896
push ebx
push ebx
push ebx
lea eax, [esi + 0x10]
push ebx
push eax
call fcn.0040dc11
add esp, 0x14
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x50], esi
call fcn.00520142
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x18]
mov byte [ebp - 4], 0x20
call fcn.0040e04d
lea ecx, [ebp - 0x54]
push ecx
mov ecx, eax
call fcn.004023c0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x1a
call fcn.004b04ce
lea ecx, [ebp + 0xc]
call fcn.005acebb
lea ecx, [ebp - 0x1c]
call fcn.005acebb
lea ecx, [ebp - 0x30]
call fcn.005acebb
lea ecx, [ebp - 0x24]
call fcn.005acebb
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0xc
call fcn.0040273a
cmp eax, ebx
pop ecx
jge 0x409902
push eax
call fcn.005fc540
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.00402b3a
jmp 0x409586
push ebx
push ecx
mov eax, esp
mov dword [ebp + 0xc], esp
push 0x2fd
push eax
mov ecx, edi
call fcn.00519b67
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xb
call fcn.00423f87
mov ecx, eax
call fcn.00404380
push eax
mov byte [ebp - 4], 0x22
call fcn.0040e892
mov esi, eax
neg esi
lea eax, [ebp - 0xb0]
sbb esi, esi
push eax
neg esi
mov byte [ebp - 4], 0xb
call fcn.0040273a
add esp, 0xc
cmp eax, ebx
jge 0x409970
push eax
call fcn.005fc540
cmp esi, ebx
mov eax, dword [ebp - 0x14]
je 0x4099b8
mov edi, dword [eax + 0x28]
cmp edi, ebx
je 0x4099b8
cmp edi, dword [eax + 0x24]
je 0x40999b
cmp edi, dword [eax + 0x28]
je 0x40999b
lea ecx, [eax + 0x18]
call fcn.0040e04d
push edi
mov ecx, eax
call fcn.004023c0
mov eax, dword [ebp - 0x14]
mov ecx, edi
add edi, 0xfffffff0
neg ecx
sbb ecx, ecx
and ecx, edi
mov ecx, dword [ecx + 8]
mov edx, ecx
add ecx, 0x10
neg edx
sbb edx, edx
and edx, ecx
mov edi, edx
jne 0x40997e
mov dword [eax + 0x14], esi
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x168]
call fcn.0040eeac
mov esi, eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004023c0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x38]
mov dword [eax + 0x34], esi
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040ef3e
mov dword [esi + 0x30], eax
mov esi, dword [ebp - 0x14]
call dword [fcn.006802e8]
lea ecx, [ebp - 0x2c]
mov dword [esi + 0x2c], eax
call fcn.005acebb
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 7
call fcn.0040273a
cmp eax, ebx
pop ecx
jge 0x409a1e
push eax
call fcn.005fc540
lea ecx, [ebp + 8]
call fcn.005acebb
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.004b04ce
mov dword [ebp - 0x40], ebx
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 4], 0x23
je 0x409c70
push dword [ebp + 0x10]
mov ecx, dword [0x67ac24]
lea eax, [ebp + 8]
push eax
call fcn.0040e08b
mov eax, dword [ebp + 8]
cmp eax, ebx
mov byte [ebp - 4], 0x24
je 0x409a6c
mov eax, dword [eax]
cmp eax, ebx
je 0x409a6c
mov eax, dword [eax - 4]
shr eax, 1
jmp 0x409a6e
xor eax, eax
cmp eax, ebx
mov esi, 0x681f98
je 0x409c5f
push esi
lea ecx, [ebp - 0x88]
call fcn.005d8d79
push esi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x25
call fcn.005d8d79
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x78]
push eax
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
mov byte [ebp - 4], 0x26
call fcn.0040a2e2
lea eax, [ebp - 0xb0]
push eax
mov byte [ebp - 4], 0x26
call fcn.0040464e
mov ecx, eax
call fcn.00423f87
mov ecx, eax
call fcn.004044ee
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 0x28
call fcn.0040e696
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0x29
call fcn.00416848
lea ecx, [ebp + 0xc]
call fcn.005acebb
lea eax, [ebp - 0xb0]
push eax
mov byte [ebp - 4], 0x2d
call fcn.0040273a
cmp eax, ebx
pop ecx
jge 0x409b10
push eax
call fcn.005fc540
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 0x2c
call fcn.0040273a
cmp eax, ebx
pop ecx
jge 0x409b28
push eax
call fcn.005fc540
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0x2b
call fcn.0040273a
cmp eax, ebx
pop ecx
jge 0x409b43
push eax
call fcn.005fc540
cmp dword [ebp + 0x10], ebx
je 0x409c57
push 0x20
pop eax
call fcn.005fcfe0
mov eax, esp
push eax
push dword [ebp - 0x20]
call fcn.0040e683
add esp, 4
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
call fcn.00402a05
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0x2b
call fcn.00423f87
mov ecx, eax
call fcn.00404380
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 0x30
call fcn.0040e696
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0x31
call fcn.0040398f
cmp eax, ebx
jge 0x409bb5
cmp eax, 0x80004002
je 0x409bb5
push eax
call fcn.005fc540
lea ecx, [ebp - 0x38]
call fcn.005acebb
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0x2b
call fcn.0040273a
cmp eax, ebx
pop ecx
jge 0x409bd8
push eax
call fcn.005fc540
cmp dword [ebp + 0x10], ebx
je 0x409c57
push ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
call fcn.0040a2e2
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0x2b
call fcn.00423f87
mov ecx, eax
call fcn.00404380
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 0x33
call fcn.0040e696
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x34
call fcn.0040398f
cmp eax, ebx
jge 0x409c34
cmp eax, 0x80004002
je 0x409c34
push eax
call fcn.005fc540
lea ecx, [ebp - 0x38]
call fcn.005acebb
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0x2b
call fcn.0040273a
cmp eax, ebx
pop ecx
jge 0x409c57
push eax
call fcn.005fc540
lea ecx, [ebp + 0x10]
call fcn.005acebb
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x23
call fcn.00402b3a
cmp dword [ebp - 0x40], ebx
jne 0x409ca8
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp - 0x14]
call fcn.00402e98
mov ecx, dword [ebp + 0x14]
add esi, 0x18
push esi
call fcn.0040da9d
lea ecx, [ebp - 0x40]
call fcn.005acebb
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004b04ce
lea ecx, [ebp - 0x3c]
call fcn.00402b3a
jmp 0x40a265
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x24]
cmp eax, ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x30], eax
je 0x40a231
mov eax, dword [ebp - 0x30]
mov ecx, eax
mov edx, eax
add eax, 0xfffffff0
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edx + 4]
mov edx, eax
add eax, 0x10
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x44], eax
mov eax, dword [eax + 0xc]
lea ecx, [ebp + 8]
mov dword [ebp - 0x30], edx
mov dword [ebp + 8], eax
call fcn.0041e159
push 0x20
pop eax
mov byte [ebp - 4], 0x35
call fcn.005fcfe0
mov eax, esp
push eax
push dword [ebp - 0x34]
call fcn.0040e683
add esp, 4
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
call fcn.00402a05
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x35
call fcn.00423f87
mov ecx, eax
call fcn.00404380
xor edi, edi
cmp word [ebp - 0x64], di
mov byte [ebp - 4], 0x37
je 0x40a284
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.0040e696
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0x38
call fcn.00505e09
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x3a
call fcn.005acebb
cmp dword [ebp + 0x10], edi
je 0x40a27c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], edi
je 0x409d8b
mov eax, dword [eax + 0x20]
shr eax, 1
cmp dword [ebp - 0x34], eax
jne 0x409d8b
or dword [ebp - 0x48], 0xffffffff
cmp dword [ebp + 8], edi
mov ebx, 0x80004003
jne 0x409d9b
push ebx
call fcn.005fc540
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.0040d97c
mov esi, eax
mov ecx, edi
neg esi
call fcn.0040d97c
neg eax
cmp eax, esi
mov dword [ebp - 0x24], eax
jl 0x409dbd
mov dword [ebp - 0x24], esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x409dd5
push ebx
call fcn.005fc540
cmp dword [ebp + 0x10], edi
jne 0x409dd5
push ebx
call fcn.005fc540
cmp dword [ebp + 8], edi
mov esi, dword [ebp + 0x10]
jne 0x409de3
push ebx
call fcn.005fc540
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [ebp - 0x28], eax
jne 0x409df3
push ebx
call fcn.005fc540
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.0040d97c
mov edx, eax
mov ecx, esi
mov dword [ebp - 0x10], edx
call fcn.0040d92e
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, edi
sub esi, eax
call fcn.0040d92e
mov ecx, dword [ebp - 0x28]
mov edi, eax
call fcn.0040d97c
sub edi, eax
cmp esi, edi
mov dword [ebp - 0x2c], edi
jl 0x409e2e
mov dword [ebp - 0x2c], esi
cmp dword [ebp + 0x10], 0
jne 0x409e3a
push ebx
call fcn.005fc540
cmp dword [ebp + 8], 0
jne 0x409e46
push ebx
call fcn.005fc540
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.0040d9a3
mov esi, eax
mov ecx, edi
neg esi
call fcn.0040d9a3
neg eax
cmp eax, esi
mov dword [ebp - 0x1c], eax
jl 0x409e68
mov dword [ebp - 0x1c], esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x409e80
push ebx
call fcn.005fc540
cmp dword [ebp + 0x10], edi
jne 0x409e80
push ebx
call fcn.005fc540
cmp dword [ebp + 8], edi
mov esi, dword [ebp + 0x10]
jne 0x409e8e
push ebx
call fcn.005fc540
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [ebp - 0x28], eax
jne 0x409e9e
push ebx
call fcn.005fc540
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.0040d9a3
mov edx, eax
mov ecx, esi
mov dword [ebp - 0x10], edx
call fcn.0040d955
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, edi
sub esi, eax
call fcn.0040d955
mov ecx, dword [ebp - 0x28]
mov edi, eax
call fcn.0040d9a3
sub edi, eax
cmp esi, edi
mov dword [ebp - 0x20], edi
jl 0x409ed9
mov dword [ebp - 0x20], esi
and dword [ebp + 0xc], 0
push 0x268
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x6805c0
mov byte [ebp - 4], 0x3b
call fcn.00519b67
mov eax, dword [eax]
test eax, eax
mov byte [ebp - 4], 0x3c
je 0x409f02
mov eax, dword [eax]
jmp 0x409f04
xor eax, eax
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.00403023
add esp, 0xc
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x3b
call fcn.00402b3a
mov esi, 0x681f98
push esi
lea ecx, [ebp - 0x88]
call fcn.005d8d79
push esi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x3d
call fcn.005d8d79
mov eax, dword [ebp + 0xc]
test eax, eax
mov byte [ebp - 4], 0x3e
jne 0x409f51
push ebx
call fcn.005fc540
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 0x1c]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x88]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [eax]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x78]
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
push eax
mov dword [ebp - 0x10], eax
movsd dword es:[edi], dword [esi]
call dword [edx + 0x2c]
test eax, eax
jge 0x409f95
push 0x671708
push dword [ebp - 0x10]
push eax
call fcn.005fc54e
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 0x3d
call fcn.0040273a
xor esi, esi
cmp eax, esi
pop ecx
jge 0x409faf
push eax
call fcn.005fc540
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0x3b
call fcn.0040273a
cmp eax, esi
pop ecx
jge 0x409fca
push eax
call fcn.005fc540
push 3
push 0xff
lea ecx, [ebp - 0xd0]
call fcn.00402fc7
cmp dword [ebp + 8], esi
mov byte [ebp - 4], 0x3f
jne 0x409ff6
push ebx
call fcn.005fc540
cmp dword [ebp + 8], esi
jne 0x409ff6
push ebx
call fcn.005fc540
cmp dword [ebp + 0xc], esi
mov edi, dword [ebp + 8]
jne 0x40a004
push ebx
call fcn.005fc540
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], ecx
call fcn.0040d9a3
mov ebx, eax
add ebx, dword [ebp - 0x1c]
mov ecx, edi
neg ebx
call fcn.0040d97c
mov ecx, dword [esi]
add eax, dword [ebp - 0x24]
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x10]
lea esi, [ebp - 0xd0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
neg eax
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x20]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x80]
test eax, eax
jge 0x40a059
push 0x671708
push dword [ebp - 0x20]
push eax
call fcn.005fc54e
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 0x3b
call fcn.0040273a
xor ebx, ebx
cmp eax, ebx
pop ecx
jge 0x40a076
push eax
call fcn.005fc540
push 3
push 0xff
lea ecx, [ebp - 0xe0]
call fcn.00402fc7
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 4], 0x40
mov esi, 0x80004003
jne 0x40a0a7
push esi
call fcn.005fc540
cmp dword [ebp + 0x10], ebx
jne 0x40a0a7
push esi
call fcn.005fc540
cmp dword [ebp + 0xc], ebx
mov edi, dword [ebp + 0x10]
jne 0x40a0b5
push esi
call fcn.005fc540
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], ecx
call fcn.0040d9a3
mov ebx, eax
add ebx, dword [ebp - 0x1c]
mov ecx, edi
neg ebx
call fcn.0040d97c
mov ecx, dword [esi]
add eax, dword [ebp - 0x24]
sub esp, 0x10
mov edi, esp
push dword [ebp - 0x10]
lea esi, [ebp - 0xe0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
neg eax
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x20]
movsd dword es:[edi], dword [esi]
call dword [ecx + 0x80]
test eax, eax
mov esi, 0x671708
jge 0x40a10b
push esi
push dword [ebp - 0x20]
push eax
call fcn.005fc54e
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 0x3b
call fcn.0040273a
test eax, eax
pop ecx
jge 0x40a126
push eax
call fcn.005fc540
cmp dword [ebp + 0xc], 0
jne 0x40a136
push 0x80004003
call fcn.005fc540
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
neg eax
push eax
push edi
call dword [ecx + 0x70]
test eax, eax
jge 0x40a151
push esi
push edi
push eax
call fcn.005fc54e
cmp dword [ebp + 0xc], 0
jne 0x40a161
push 0x80004003
call fcn.005fc540
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi]
neg eax
push eax
push edi
call dword [ecx + 0x78]
test eax, eax
jge 0x40a17c
push esi
push edi
push eax
call fcn.005fc54e
push 0x44
mov ecx, 0x680528
call fcn.00402530
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 0x41
je 0x40a19e
mov ecx, eax
call fcn.0040a334
mov ebx, eax
jmp 0x40a1a0
xor ebx, ebx
push dword [ebp + 0xc]
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 0x3b
call fcn.00402473
mov eax, dword [ebp - 0x44]
push 0xc
lea esi, [eax + 0x10]
pop ecx
lea edi, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x40]
lea ecx, [ebp - 0x54]
mov dword [ebx + 0x40], eax
mov dword [ebp - 0x50], ebx
call fcn.00520142
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 0x42
call fcn.0040e04d
lea ecx, [ebp - 0x54]
push ecx
mov ecx, eax
call fcn.004023c0
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x3b
call fcn.004b04ce
lea ecx, [ebp + 0xc]
call fcn.005acebb
lea ecx, [ebp + 0x10]
call fcn.005acebb
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x35
call fcn.0040273a
test eax, eax
pop ecx
jge 0x40a219
push eax
call fcn.005fc540
lea ecx, [ebp + 8]
call fcn.005acebb
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x34], eax
cmp dword [ebp - 0x30], 0
jne 0x409cc3
mov eax, dword [ebp - 0x40]
xor esi, esi
cmp eax, esi
mov byte [ebp - 4], 1
je 0x40a244
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and byte [ebp - 4], 0
cmp dword [ebp - 0x14], esi
je 0x40a259
push esi
lea ecx, [ebp - 0x18]
call fcn.004d7506
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x3c]
cmp ecx, esi
je 0x40a265
call fcn.00402d75
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0xec]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x10
lea ecx, [ebp + 0x10]
call fcn.005acebb
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x35
call fcn.0040273a
cmp eax, edi
pop ecx
jge 0x40a29c
push eax
call fcn.005fc540
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x23
call fcn.005acebb
cmp dword [ebp - 0x30], edi
je 0x40a231
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp - 0x14]
call fcn.00402e98
mov ecx, dword [ebp + 0x14]
add esi, 0x18
push esi
call fcn.0040da9d
lea ecx, [ebp - 0x40]
call fcn.005acebb
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004b04ce
mov ecx, dword [ebp - 0x3c]
cmp ecx, edi
jmp 0x40a25e