Function at 0x40b839
Capabilities:
Encode data using base64

Disassembly:
mov eax, 0x7bc83b
call fcn.007a83c4
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 0x40b86f
lea eax, [esi*4 + 0x8828a4]
jmp 0x40b886
lea eax, [esi - 9]
push eax
lea eax, [ebp - 0xa0]
push eax
call fcn.005cb284
mov dword [ebp - 0x2c], 1
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040896a
test byte [ebp - 0x2c], 1
mov dword [ebp - 4], ebx
je 0x40b8a3
lea ecx, [ebp - 0xa0]
call fcn.00402f46
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 + 0x1d4]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x38], ecx
call fcn.004152a4
test eax, eax
je 0x40b8e0
mov esi, dword [ebp - 0x14]
call dword [0x884ea4]
mov dword [esi + 0x2c], eax
jmp 0x40bed1
push 0x38
mov ecx, 0x885098
call fcn.00402959
mov dword [ebp + 0xc], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x40b900
mov ecx, eax
call fcn.0040c74d
jmp 0x40b902
xor eax, eax
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004110d6
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.0040c84f
cmp dword [ebp - 0x58], ebx
mov byte [ebp - 4], 3
jne 0x40b944
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00411f1f
jmp 0x40c737
push ebx
push ebx
push ecx
lea eax, [ebp - 0x3c]
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
call fcn.004056b0
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 3
call fcn.00411069
mov ecx, eax
add ecx, 0xc
call fcn.004025dd
mov ecx, eax
call fcn.00404855
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.004037d0
cmp eax, ebx
mov dword [ebp - 0x48], eax
mov dword [ebp + 8], ebx
je 0x40b9ab
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp + 8]
call fcn.00404545
cmp eax, ebx
jge 0x40b9ab
cmp eax, 0x80004002
je 0x40b9ab
push eax
call fcn.007a760b
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 7
call fcn.00402b63
cmp eax, ebx
pop ecx
jge 0x40b9c6
push eax
call fcn.007a760b
cmp dword [ebp + 8], ebx
jne 0x40b9d8
lea ecx, [ebp + 8]
call fcn.0040278b
jmp 0x40b933
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.oleaut32.dll_VariantInit]
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], 8
jne 0x40b9f5
push 0x80004003
call fcn.007a760b
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x44]
push eax
call fcn.00404962
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 9
call fcn.004034b3
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0xb
call fcn.00402753
mov dword [ebp - 0x98], ebx
mov edi, 0x885138
cmp dword [ebp - 0x2c], ebx
jne 0x40ba34
push 0x80004003
call fcn.007a760b
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 0x40bdb2
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.004056d6
add esp, 4
lea eax, [ebp - 0x34]
mov dword [ebp - 0x28], esp
mov ecx, esp
push eax
call fcn.0040896a
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xc
call fcn.004025dd
mov ecx, eax
call fcn.00404855
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x9c]
push eax
mov byte [ebp - 4], 0xe
call fcn.00412752
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0xf
call fcn.004166f4
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0x11
call fcn.00402753
mov ecx, dword [ebp - 0x24]
cmp ecx, ebx
je 0x40bd7e
lea eax, [ebp - 0x30]
push eax
call fcn.004051e6
push ebx
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
push 0x37b
push eax
mov ecx, edi
mov byte [ebp - 4], 0x12
call fcn.006145b0
lea eax, [ebp - 0xd0]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x12
call fcn.004025dd
mov ecx, eax
call fcn.00404855
mov ecx, eax
mov byte [ebp - 4], 0x14
call fcn.004037d0
cmp eax, ebx
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x1c], ebx
je 0x40bb3e
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.0041961a
cmp eax, ebx
jge 0x40bb3e
cmp eax, 0x80004002
je 0x40bb3e
push eax
call fcn.007a760b
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 0x16
call fcn.00402b63
cmp eax, ebx
pop ecx
jge 0x40bb59
push eax
call fcn.007a760b
push ebx
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
push 0x37c
push eax
mov ecx, edi
call fcn.006145b0
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x16
call fcn.004025dd
mov ecx, eax
call fcn.00404855
mov ecx, eax
mov byte [ebp - 4], 0x18
call fcn.004037d0
cmp eax, ebx
mov dword [ebp - 0x90], eax
mov dword [ebp + 0xc], ebx
je 0x40bbc0
lea eax, [ebp - 0x90]
push eax
lea ecx, [ebp + 0xc]
call fcn.0041961a
cmp eax, ebx
jge 0x40bbc0
cmp eax, 0x80004002
je 0x40bbc0
push eax
call fcn.007a760b
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0x1a
call fcn.00402b63
cmp eax, ebx
pop ecx
jge 0x40bbdb
push eax
call fcn.007a760b
push 0x44
mov ecx, 0x885098
call fcn.00402959
mov dword [ebp - 0x28], eax
cmp eax, ebx
mov byte [ebp - 4], 0x1b
je 0x40bbfd
mov ecx, eax
call fcn.0040c780
mov esi, eax
jmp 0x40bbff
xor esi, esi
push dword [ebp - 0x24]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 0x1a
call fcn.0040451a
push 0xb4
push ecx
mov eax, esp
mov dword [ebp - 0x28], esp
push 0x40d
push eax
mov ecx, edi
call fcn.006145b0
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x1c
call fcn.00410a67
mov ecx, eax
call fcn.004051e6
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
mov byte [ebp - 4], 0x1e
call fcn.004025dd
mov ecx, eax
call fcn.00404855
push eax
mov byte [ebp - 4], 0x1f
call fcn.00412986
mov dword [esi + 0x40], eax
lea eax, [ebp - 0xb0]
push eax
mov byte [ebp - 4], 0x1e
call fcn.00402b63
add esp, 0xc
cmp eax, ebx
jge 0x40bc83
push eax
call fcn.007a760b
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 0x1a
call fcn.0040278b
push ebx
lea ecx, [ebp - 0x1c]
call fcn.00410a3b
test al, al
jne 0x40bd25
push ebx
lea ecx, [ebp + 0xc]
call fcn.00410a3b
test al, al
jne 0x40bd25
cmp dword [ebp + 0xc], ebx
mov edi, 0x80004003
jne 0x40bccb
push edi
call fcn.007a760b
cmp dword [ebp + 0xc], ebx
jne 0x40bccb
push edi
call fcn.007a760b
cmp dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x4c], eax
jne 0x40bcdc
push edi
call fcn.007a760b
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [ebp - 0x28], eax
jne 0x40bcec
push edi
call fcn.007a760b
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x1c]
call fcn.00404ea0
mov ecx, dword [ebp - 0x4c]
push eax
call fcn.00404e79
mov ecx, dword [ebp - 0x28]
push eax
call fcn.00404ea0
push eax
mov ecx, edi
call fcn.00404e79
push eax
lea eax, [esi + 0x10]
push eax
call fcn.004112e9
add esp, 0x14
mov edi, 0x885138
jmp 0x40bd35
push ebx
push ebx
push ebx
lea eax, [esi + 0x10]
push ebx
push eax
call fcn.004112e9
add esp, 0x14
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x50], esi
call fcn.00412206
mov eax, dword [ebp - 0x14]
lea ecx, [eax + 0x18]
mov byte [ebp - 4], 0x20
call fcn.00412f68
lea ecx, [ebp - 0x54]
push ecx
mov ecx, eax
call fcn.004121cd
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x1a
call fcn.00412218
lea ecx, [ebp + 0xc]
call fcn.004119e2
lea ecx, [ebp - 0x1c]
call fcn.004119e2
lea ecx, [ebp - 0x30]
call fcn.0040278b
lea ecx, [ebp - 0x24]
call fcn.004119ef
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0xc
call fcn.00402b63
cmp eax, ebx
pop ecx
jge 0x40bda1
push eax
call fcn.007a760b
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xb
call fcn.00402f46
jmp 0x40ba25
push ebx
push ecx
mov eax, esp
mov dword [ebp + 0xc], esp
push 0x416
push eax
mov ecx, edi
call fcn.006145b0
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xb
call fcn.004025dd
mov ecx, eax
call fcn.00404855
push eax
mov byte [ebp - 4], 0x22
call fcn.00412986
mov esi, eax
neg esi
lea eax, [ebp - 0xb0]
sbb esi, esi
push eax
neg esi
mov byte [ebp - 4], 0xb
call fcn.00402b63
add esp, 0xc
cmp eax, ebx
jge 0x40be0f
push eax
call fcn.007a760b
cmp esi, ebx
mov eax, dword [ebp - 0x14]
je 0x40be57
mov edi, dword [eax + 0x28]
cmp edi, ebx
je 0x40be57
cmp edi, dword [eax + 0x24]
je 0x40be3a
cmp edi, dword [eax + 0x28]
je 0x40be3a
lea ecx, [eax + 0x18]
call fcn.00412f68
push edi
mov ecx, eax
call fcn.004121cd
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 0x40be1d
mov dword [eax + 0x14], esi
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 0x1c0]
call fcn.0041511a
mov esi, eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00411f35
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.004152f8
mov dword [esi + 0x30], eax
mov esi, dword [ebp - 0x14]
call dword [0x884ea4]
lea ecx, [ebp - 0x2c]
mov dword [esi + 0x2c], eax
call fcn.00402798
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 7
call fcn.00402b63
cmp eax, ebx
pop ecx
jge 0x40bebd
push eax
call fcn.007a760b
lea ecx, [ebp + 8]
call fcn.0040278b
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00411f1f
mov dword [ebp - 0x40], ebx
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 4], 0x23
je 0x40c718
push dword [ebp + 0x10]
lea eax, [ebp + 8]
push eax
call fcn.00521523
pop ecx
pop ecx
mov eax, dword [ebp + 8]
cmp eax, ebx
mov byte [ebp - 4], 0x24
mov esi, 0x889398
je 0x40c36d
cmp word [eax], bx
je 0x40c36d
push esi
lea ecx, [ebp - 0x88]
call fcn.00403131
push esi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x25
call fcn.00403131
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x26
call fcn.00410b4b
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
push eax
call fcn.004038a0
lea eax, [ebp - 0xb0]
push eax
mov byte [ebp - 4], 0x26
call fcn.004056d0
mov ecx, eax
call fcn.00402600
mov ecx, eax
call fcn.00404a04
push eax
lea eax, [ebp + 0xc]
push eax
mov byte [ebp - 4], 0x28
call fcn.00412752
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0x29
call fcn.0041666f
lea ecx, [ebp + 0xc]
call fcn.00402753
lea eax, [ebp - 0xb0]
push eax
mov byte [ebp - 4], 0x2d
call fcn.00402b63
cmp eax, ebx
pop ecx
jge 0x40bfa6
push eax
call fcn.007a760b
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 0x2c
call fcn.00402b63
cmp eax, ebx
pop ecx
jge 0x40bfbe
push eax
call fcn.007a760b
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0x2b
call fcn.00402b63
cmp eax, ebx
pop ecx
jge 0x40bfd9
push eax
call fcn.007a760b
cmp dword [ebp + 0x10], ebx
je 0x40c0ed
push 0x20
pop eax
call fcn.007a88c0
mov eax, esp
push eax
push dword [ebp - 0x20]
call fcn.0041273f
add esp, 4
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
call fcn.00402e2e
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0x2b
call fcn.004025dd
mov ecx, eax
call fcn.00404855
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 0x30
call fcn.00412752
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0x31
call fcn.0041955a
cmp eax, ebx
jge 0x40c04b
cmp eax, 0x80004002
je 0x40c04b
push eax
call fcn.007a760b
lea ecx, [ebp - 0x38]
call fcn.00402753
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0x2b
call fcn.00402b63
cmp eax, ebx
pop ecx
jge 0x40c06e
push eax
call fcn.007a760b
cmp dword [ebp + 0x10], ebx
je 0x40c0ed
push ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
call fcn.0040896a
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0x2b
call fcn.004025dd
mov ecx, eax
call fcn.00404855
push eax
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 4], 0x33
call fcn.00412752
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x34
call fcn.0041955a
cmp eax, ebx
jge 0x40c0ca
cmp eax, 0x80004002
je 0x40c0ca
push eax
call fcn.007a760b
lea ecx, [ebp - 0x38]
call fcn.00402753
lea eax, [ebp - 0xc0]
push eax
mov byte [ebp - 4], 0x2b
call fcn.00402b63
cmp eax, ebx
pop ecx
jge 0x40c0ed
push eax
call fcn.007a760b
lea ecx, [ebp + 0x10]
call fcn.0040278b
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0x23
cmp eax, ebx
je 0x40c10a
add eax, 0xfffffff4
push eax
call fcn.00403211
pop ecx
cmp dword [ebp - 0x40], ebx
je 0x40c718
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 0x40c6a5
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.004119fc
push 0x20
pop eax
mov byte [ebp - 4], 0x35
call fcn.007a88c0
mov eax, esp
push eax
push dword [ebp - 0x34]
call fcn.0041273f
add esp, 4
mov dword [ebp - 0x10], esp
mov ecx, esp
push eax
call fcn.00402e2e
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x35
call fcn.004025dd
mov ecx, eax
call fcn.00404855
xor esi, esi
cmp word [ebp - 0x64], si
mov byte [ebp - 4], 0x37
je 0x40c6ef
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00412752
pop ecx
pop ecx
push eax
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 0x38
call fcn.004166f4
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x3a
call fcn.00402753
cmp dword [ebp + 0x10], esi
je 0x40c6e7
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x14], esi
je 0x40c1f6
mov eax, dword [eax + 0x20]
shr eax, 1
cmp dword [ebp - 0x34], eax
jne 0x40c1f6
or dword [ebp - 0x48], 0xffffffff
cmp dword [ebp + 8], esi
mov ebx, 0x80004003
jne 0x40c206
push ebx
call fcn.007a760b
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.00410ba4
mov esi, eax
mov ecx, edi
neg esi
call fcn.00410ba4
neg eax
cmp eax, esi
mov dword [ebp - 0x24], eax
jl 0x40c228
mov dword [ebp - 0x24], esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x40c240
push ebx
call fcn.007a760b
cmp dword [ebp + 0x10], edi
jne 0x40c240
push ebx
call fcn.007a760b
cmp dword [ebp + 8], edi
mov esi, dword [ebp + 0x10]
jne 0x40c24e
push ebx
call fcn.007a760b
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [ebp - 0x28], eax
jne 0x40c25e
push ebx
call fcn.007a760b
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.00410ba4
mov edx, eax
mov ecx, esi
mov dword [ebp - 0x10], edx
call fcn.00410b4e
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, edi
sub esi, eax
call fcn.00410b4e
mov ecx, dword [ebp - 0x28]
mov edi, eax
call fcn.00410ba4
sub edi, eax
cmp esi, edi
mov dword [ebp - 0x2c], edi
jl 0x40c299
mov dword [ebp - 0x2c], esi
cmp dword [ebp + 0x10], 0
jne 0x40c2a5
push ebx
call fcn.007a760b
cmp dword [ebp + 8], 0
jne 0x40c2b1
push ebx
call fcn.007a760b
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.00410bcb
mov esi, eax
mov ecx, edi
neg esi
call fcn.00410bcb
neg eax
cmp eax, esi
mov dword [ebp - 0x1c], eax
jl 0x40c2d3
mov dword [ebp - 0x1c], esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jne 0x40c2eb
push ebx
call fcn.007a760b
cmp dword [ebp + 0x10], edi
jne 0x40c2eb
push ebx
call fcn.007a760b
cmp dword [ebp + 8], edi
mov esi, dword [ebp + 0x10]
jne 0x40c2f9
push ebx
call fcn.007a760b
mov eax, dword [ebp + 8]
cmp eax, edi
mov dword [ebp - 0x28], eax
jne 0x40c309
push ebx
call fcn.007a760b
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.00410bcb
mov edx, eax
mov ecx, esi
mov dword [ebp - 0x10], edx
call fcn.00410b75
mov esi, eax
mov eax, dword [ebp - 0x10]
mov ecx, edi
sub esi, eax
call fcn.00410b75
mov ecx, dword [ebp - 0x28]
mov edi, eax
call fcn.00410bcb
sub edi, eax
cmp esi, edi
mov dword [ebp - 0x20], edi
jl 0x40c344
mov dword [ebp - 0x20], esi
and dword [ebp + 0xc], 0
push 0x370
lea eax, [ebp - 0x4c]
push eax
mov ecx, 0x885138
mov byte [ebp - 4], 0x3b
call fcn.006145b0
mov eax, dword [eax]
test eax, eax
mov byte [ebp - 4], 0x3c
je 0x40c376
mov eax, dword [eax]
jmp 0x40c378
mov byte [ebp - 4], 0x23
jmp 0x40c0fc
xor eax, eax
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
call fcn.004036c6
add esp, 0xc
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x3b
call fcn.00402f46
mov esi, 0x889398
push esi
lea ecx, [ebp - 0x88]
call fcn.00403131
push esi
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x3d
call fcn.00403131
mov eax, dword [ebp + 0xc]
test eax, eax
mov byte [ebp - 4], 0x3e
jne 0x40c3c5
push ebx
call fcn.007a760b
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 0x40c409
push 0x870918
push dword [ebp - 0x10]
push eax
call fcn.007a7619
lea eax, [ebp - 0x78]
push eax
mov byte [ebp - 4], 0x3d
call fcn.00402b63
xor esi, esi
cmp eax, esi
pop ecx
jge 0x40c423
push eax
call fcn.007a760b
lea eax, [ebp - 0x88]
push eax
mov byte [ebp - 4], 0x3b
call fcn.00402b63
cmp eax, esi
pop ecx
jge 0x40c43e
push eax
call fcn.007a760b
push 3
push 0xff
lea ecx, [ebp - 0xd0]
call fcn.00403157
cmp dword [ebp + 8], esi
mov byte [ebp - 4], 0x3f
jne 0x40c46a
push ebx
call fcn.007a760b
cmp dword [ebp + 8], esi
jne 0x40c46a
push ebx
call fcn.007a760b
cmp dword [ebp + 0xc], esi
mov edi, dword [ebp + 8]
jne 0x40c478
push ebx
call fcn.007a760b
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], ecx
call fcn.00410bcb
mov ebx, eax
add ebx, dword [ebp - 0x1c]
mov ecx, edi
neg ebx
call fcn.00410ba4
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 0x40c4cd
push 0x870918
push dword [ebp - 0x20]
push eax
call fcn.007a7619
lea eax, [ebp - 0xd0]
push eax
mov byte [ebp - 4], 0x3b
call fcn.00402b63
xor ebx, ebx
cmp eax, ebx
pop ecx
jge 0x40c4ea
push eax
call fcn.007a760b
push 3
push 0xff
lea ecx, [ebp - 0xe0]
call fcn.00403157
cmp dword [ebp + 0x10], ebx
mov byte [ebp - 4], 0x40
mov esi, 0x80004003
jne 0x40c51b
push esi
call fcn.007a760b
cmp dword [ebp + 0x10], ebx
jne 0x40c51b
push esi
call fcn.007a760b
cmp dword [ebp + 0xc], ebx
mov edi, dword [ebp + 0x10]
jne 0x40c529
push esi
call fcn.007a760b
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], ecx
call fcn.00410bcb
mov ebx, eax
add ebx, dword [ebp - 0x1c]
mov ecx, edi
neg ebx
call fcn.00410ba4
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, 0x870918
jge 0x40c57f
push esi
push dword [ebp - 0x20]
push eax
call fcn.007a7619
lea eax, [ebp - 0xe0]
push eax
mov byte [ebp - 4], 0x3b
call fcn.00402b63
test eax, eax
pop ecx
jge 0x40c59a
push eax
call fcn.007a760b
cmp dword [ebp + 0xc], 0
jne 0x40c5aa
push 0x80004003
call fcn.007a760b
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 0x40c5c5
push esi
push edi
push eax
call fcn.007a7619
cmp dword [ebp + 0xc], 0
jne 0x40c5d5
push 0x80004003
call fcn.007a760b
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 0x40c5f0
push esi
push edi
push eax
call fcn.007a7619
push 0x44
mov ecx, 0x885098
call fcn.00402959
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], 0x41
je 0x40c612
mov ecx, eax
call fcn.0040c780
mov ebx, eax
jmp 0x40c614
xor ebx, ebx
push dword [ebp + 0xc]
lea ecx, [ebx + 0xc]
mov byte [ebp - 4], 0x3b
call fcn.0040451a
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.00412206
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 0x42
call fcn.00412f68
lea ecx, [ebp - 0x54]
push ecx
mov ecx, eax
call fcn.004121cd
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 0x3b
call fcn.00412218
lea ecx, [ebp + 0xc]
call fcn.004119ef
lea ecx, [ebp + 0x10]
call fcn.004119ef
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x35
call fcn.00402b63
test eax, eax
pop ecx
jge 0x40c68d
push eax
call fcn.007a760b
lea ecx, [ebp + 8]
call fcn.004119ef
mov eax, dword [ebp - 0x48]
add dword [ebp - 0x34], eax
cmp dword [ebp - 0x30], 0
jne 0x40c12e
lea ecx, [ebp - 0x40]
call fcn.0040278b
and byte [ebp - 4], 0
xor esi, esi
cmp dword [ebp - 0x14], esi
je 0x40c6c4
push esi
lea ecx, [ebp - 0x18]
call fcn.004124bb
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 0x3c]
cmp ecx, esi
je 0x40c6d0
call fcn.00403051
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.004119ef
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 0x35
call fcn.00402b63
cmp eax, esi
pop ecx
jge 0x40c707
push eax
call fcn.007a760b
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0x23
call fcn.004119ef
cmp dword [ebp - 0x30], esi
je 0x40c6a5
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp - 0x14]
call fcn.00412fa6
mov ecx, dword [ebp + 0x14]
add esi, 0x18
push esi
call fcn.00411ae9
lea ecx, [ebp - 0x40]
call fcn.0040278b
and byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00411f6e
lea ecx, [ebp - 0x3c]
call fcn.00402f46
jmp 0x40c6d0