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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x80]
lea eax, [edi + 0x148]
mov ebp, dword [edi]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x84]
mov ecx, dword [ebp]
mov esi, dword [ebp + 8]
lea edx, [eax + eax*8]
mov eax, dword [edi + edx*8 + 0x318]
mov dword [esp + 0x14], eax
xor eax, eax
lea ebx, [edi + edx*8 + 0x2e0]
mov edx, dword [edi + 4]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], esi
mov al, byte [ebx + 0x24]
mov dword [esp + 0x70], ebx
lea ecx, [eax + eax*4]
shl ecx, 4
lea eax, [ecx + edx + 8]
mov dword [esp + 0x48], eax
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
push eax
lea eax, [edi + 0x44]
push eax
call fcn.100740c0
mov ecx, dword [esp + 0x90]
add esp, 8
not eax
and eax, ecx
mov ecx, dword [esp + 0x8c]
not edx
and edx, ecx
mov ecx, dword [esp + 0x84]
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], edx
mov eax, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
call fcn.1007e4d0
mov ecx, dword [esp + 0x14]
and eax, 1
mov dword [esp + 0x18], eax
test byte [ecx + 0x24], 0x40
je 0x100760f0
mov al, byte [edi + 0x22]
mov dword [esp + 0x68], 1
test al, 0x20
je 0x100760f8
mov dword [esp + 0x68], 0
push esi
call fcn.10058960
push esi
mov dword [esp + 0x48], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
call fcn.10058960
mov dword [esp + 0x58], eax
mov dword [ebx + 0x18], eax
mov al, byte [ebx + 0x24]
add esp, 8
test al, al
jbe 0x10076142
mov edx, dword [esp + 0x48]
test byte [edx + 0x24], 8
je 0x10076142
mov edx, dword [ebp + 0x48]
inc edx
mov eax, edx
mov dword [ebp + 0x48], edx
push eax
push 0
push 0x19
push esi
mov dword [ebx], eax
call fcn.10057e50
add esp, 0x10
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x28]
test al, 4
mov dword [esp + 0x78], eax
je 0x10076181
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
push ecx
push 0
push edi
push 0x14
push esi
call fcn.1004aaf0
mov edx, dword [esp + 0x54]
push edx
push edi
push 0x16
push esi
call fcn.10057e50
add esp, 0x24
mov byte [ebx + 0x25], 0x10
jmp 0x10077114
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 0x24]
test dh, 4
mov dword [esp + 0x6c], edx
je 0x10076330
mov eax, ecx
xor edi, edi
push ebp
mov di, word [eax + 0x28]
call fcn.1005b030
lea eax, [edi + 2]
push eax
push ebp
mov dword [esp + 0x78], eax
call fcn.1005c700
mov ecx, dword [ebx + 0xc]
add esp, 0xc
test edi, edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x84], 0
jle 0x10076243
mov edx, eax
add edx, 2
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x84]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx + edx*4]
test eax, eax
je 0x10076227
test byte [eax + 0x12], 1
mov ecx, dword [esp + 0x48]
push ecx
je 0x10076218
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x88]
push edx
push ecx
push ebx
push eax
push ebp
call fcn.100774c0
mov edx, dword [ebx + 0x10]
add esp, 0x18
mov dword [esp + 0x60], edx
jmp 0x10076227
mov edx, dword [eax]
mov eax, dword [edx + 0x10]
push eax
push ebp
call fcn.10058c90
add esp, 0xc
mov eax, dword [esp + 0x84]
mov edx, dword [esp + 0x48]
inc eax
inc edx
cmp eax, edi
mov dword [esp + 0x84], eax
mov dword [esp + 0x48], edx
jl 0x100761d7
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x40]
push ecx
mov eax, dword [edx + 0x18]
push eax
push 0x19
push esi
call fcn.10057e50
mov ecx, dword [esp + 0x50]
inc ecx
push ecx
push edi
push 0x19
push esi
call fcn.10057e50
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x60]
mov dl, byte [eax + 0x1c]
mov eax, dword [eax + 0x20]
neg dl
sbb edx, edx
and edx, 0xfffffff7
add edx, 0xfffffffe
push edx
mov edx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x38]
push ecx
push edx
push eax
push 0xe
push esi
call fcn.100574e0
mov ecx, dword [esp + 0x50]
add esp, 0x3c
test edi, edi
mov byte [ecx + 0x1c], 0
mov dword [esp + 0x84], 0
jle 0x100762fe
mov eax, dword [esp + 0x84]
cmp eax, 0x10
jge 0x100762fe
mov edx, dword [esp + 0x14]
mov cx, ax
mov dx, word [edx + 0x1e]
shr dx, cl
test dl, 1
je 0x100762f2
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x84]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx + edx*4]
push eax
push ebx
call fcn.100773f0
mov eax, dword [esp + 0x8c]
add esp, 8
inc eax
cmp eax, edi
mov dword [esp + 0x84], eax
jl 0x100762b8
mov ecx, dword [esp + 0x10]
push esi
mov byte [ebx + 0x25], 0x98
mov dword [ebx + 0x28], ecx
call fcn.100589e0
mov edx, dword [esp + 0x70]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x44]
push edx
push eax
push ebp
call fcn.1005c730
push ebp
call fcn.1005b040
add esp, 0x14
jmp 0x10077117
mov eax, edx
and eax, 0x100
je 0x100763cc
test dl, 5
je 0x100763cc
mov ecx, dword [esp + 0x14]
mov edi, dword [ebp + 0x48]
inc edi
mov edx, dword [ecx + 0x2c]
mov ecx, edi
mov dword [esp + 0x40], ecx
push ecx
mov ecx, dword [esp + 0x1c]
mov eax, dword [edx]
push ecx
push 0
push ebx
push eax
push ebp
mov dword [ebp + 0x48], edi
call fcn.100774c0
mov edi, eax
mov eax, dword [esp + 0x58]
add esp, 0x18
cmp edi, eax
je 0x10076385
mov edx, eax
push edx
push ebp
call fcn.10057ed0
add esp, 8
mov eax, dword [ebx + 0x10]
push eax
push edi
push 0x26
push esi
mov dword [esp + 0x4c], eax
call fcn.10057e50
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
push edi
push eax
push ecx
push 0x44
push esi
call fcn.1004aaf0
push 1
push edi
push ebp
call fcn.1005b280
mov edx, dword [esp + 0x40]
push edi
push 0xffffffffffffffff
push edx
push ebp
call fcn.1005b130
add esp, 0x40
mov byte [ebx + 0x25], 0x9d
jmp 0x10077117
test eax, eax
je 0x100765b2
test dl, 2
je 0x100765b2
xor eax, eax
xor edi, edi
test dl, 0x20
mov dword [esp + 0x3c], 0x9d
mov dword [esp + 0x60], eax
mov dword [esp + 0x84], eax
je 0x10076403
mov eax, dword [ecx + 0x2c]
mov edi, dword [eax]
mov eax, 1
test dl, 0x10
je 0x10076415
mov ecx, dword [ecx + 0x2c]
mov edx, dword [ecx + eax*4]
mov dword [esp + 0x84], edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1007642d
mov eax, edi
mov edi, dword [esp + 0x84]
mov dword [esp + 0x84], eax
test edi, edi
je 0x100764ab
mov eax, dword [edi]
lea ecx, [esp + 0x64]
push ecx
mov byte [esp + 0x4c], 0x3f
mov edx, dword [eax + 0x10]
mov byte [esp + 0x4d], 0x3d
push edx
push ebp
mov byte [esp + 0x56], 0x3c
mov byte [esp + 0x57], 0x3e
mov dword [esp + 0x78], eax
call fcn.1005b2b0
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x74], eax
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x80]
xor edx, edx
push ecx
mov dl, byte [eax]
xor ecx, ecx
mov cl, byte [esp + edx + 0x10]
push ecx
push esi
call fcn.1004aaf0
mov edx, dword [esp + 0x88]
push 1
push edx
push ebp
call fcn.1005b280
mov eax, dword [esp + 0x90]
push eax
push ebp
call fcn.10057ed0
push edi
push ebx
call fcn.100773f0
add esp, 0x3c
jmp 0x100764cc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x10]
push ecx
neg eax
sbb eax, eax
push edx
and al, 0xfd
add eax, 0x6a
push eax
push esi
call fcn.10057e50
add esp, 0x10
mov eax, dword [esp + 0x84]
test eax, eax
je 0x10076537
mov edx, dword [ebp + 0x48]
mov edi, dword [eax]
inc edx
mov dword [ebp + 0x48], edx
mov ecx, dword [edi + 0x10]
mov eax, edx
push eax
push ecx
push ebp
mov dword [esp + 0x6c], eax
call fcn.10058c90
mov al, byte [edi]
add esp, 0xc
cmp al, 0x52
je 0x10076513
cmp al, 0x50
je 0x10076513
mov eax, dword [esp + 0x18]
xor edx, edx
test eax, eax
setne dl
lea edx, [edx + edx + 0x50]
mov dword [esp + 0x3c], edx
jmp 0x10076526
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
sete al
lea eax, [eax + eax + 0x51]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x84]
push ecx
push ebx
call fcn.100773f0
add esp, 8
push esi
call fcn.100589e0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x3c]
mov dword [ebx + 0x28], ecx
test edx, edx
sete dl
add dl, 8
cmp eax, 0x9d
mov byte [ebx + 0x25], dl
je 0x10077117
mov edi, dword [ebp + 0x48]
mov edx, ecx
inc edi
push edi
push edx
push 0x65
push esi
mov dword [ebp + 0x48], edi
call fcn.10057e50
mov eax, dword [esp + 0x20]
push edi
push 0xffffffffffffffff
push eax
push ebp
call fcn.1005b130
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x5c]
push edi
push ecx
push edx
push eax
push esi
call fcn.1004aaf0
push 0x6b
push esi
call fcn.1004ace0
add esp, 0x3c
jmp 0x10077117
test dh, 2
je 0x10076b02
mov dx, word [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
mov dword [esp + 0x48], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x40], ecx
mov cl, byte [edi + 0x22]
xor eax, eax
mov dword [esp + 0x20], edx
test cl, 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov byte [esp + 0x4c], al
mov byte [esp + 0x38], al
mov byte [esp + 0x84], al
je 0x1007660d
mov cl, byte [edi + 0x24]
test cl, cl
jle 0x1007660d
mov ecx, dword [esp + 0x48]
cmp word [ecx + 0x32], dx
jbe 0x1007660d
mov byte [esp + 0x38], 1
mov eax, 1
mov edi, edx
mov dl, byte [esp + 0x6c]
and edi, 0xffff
test dl, 0x20
mov dword [esp + 0x64], edi
mov ecx, edi
je 0x10076639
mov eax, dword [esp + 0x14]
inc ecx
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + ecx*4 - 4]
mov dword [esp + 0x30], eax
mov eax, 1
test dl, 0x10
je 0x1007667c
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x2c]
mov ecx, dword [eax + ecx*4]
mov eax, 1
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x1007667c
mov edx, dword [esp + 0x48]
mov ecx, dword [edx + 4]
movsx ecx, word [ecx + edi*2]
test ecx, ecx
jl 0x1007667c
mov edx, dword [edx + 0xc]
lea ecx, [ecx + ecx*2]
mov edx, dword [edx + 4]
cmp byte [edx + ecx*8 + 0x14], 0
jne 0x1007667c
mov byte [esp + 0x38], al
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push eax
push edx
push ebx
push ebp
call fcn.10077660
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x40]
add esp, 0x14
test eax, eax
je 0x100766a4
mov al, byte [edi + eax]
mov byte [esp + 0x4c], al
mov ecx, dword [ebx + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x48]
mov ax, word [ecx + 0x32]
cmp word [esp + 0x20], ax
jae 0x100766cd
mov edx, dword [ecx + 0x1c]
xor ecx, ecx
cmp byte [edi + edx], cl
mov edx, dword [esp + 0x18]
sete cl
cmp edx, ecx
je 0x100766dc
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x100766fe
cmp ax, word [esp + 0x20]
jne 0x100766fe
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
mov cl, byte [esp + 0x38]
mov dword [esp + 0x34], edx
mov dword [esp + 0x30], eax
mov byte [esp + 0x38], 0
mov byte [esp + 0x84], cl
jmp 0x10076702
mov eax, dword [esp + 0x30]
test eax, eax
mov cl, 0x28
je 0x10076717
mov dl, byte [eax + 0x12]
mov dword [esp + 0x58], 0
test cl, dl
je 0x1007671f
mov dword [esp + 0x58], 1
mov edx, dword [esp + 0x34]
test edx, edx
je 0x10076734
test byte [edx + 0x12], cl
mov dword [esp + 0x60], 0
je 0x1007673c
mov dword [esp + 0x60], 1
test eax, eax
jne 0x1007674b
cmp word [esp + 0x20], ax
mov dword [esp + 0x5c], eax
jbe 0x10076753
mov dword [esp + 0x5c], 1
test eax, eax
mov dword [esp + 0x20], edi
je 0x100767ef
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x10]
lea ecx, [edi + edx]
push ecx
push eax
push ebp
mov dword [esp + 0x60], eax
call fcn.10058c90
mov eax, dword [esp + 0x60]
push eax
call fcn.1005a850
add esp, 0x10
test eax, eax
je 0x100767a4
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
push ecx
lea eax, [edi + edx]
push eax
push 0x4c
push esi
call fcn.10057e50
add esp, 0x10
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x1007681c
mov al, byte [edi + eax]
mov ecx, dword [esp + 0x54]
push eax
push ecx
call fcn.10059bb0
mov edi, dword [esp + 0x6c]
add esp, 8
cmp al, 0x62
jne 0x100767cc
mov edx, dword [esp + 0x2c]
mov byte [edi + edx], al
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
mov cl, byte [edi + eax]
push ecx
push edx
call fcn.10077310
add esp, 8
test eax, eax
je 0x1007681c
mov eax, dword [esp + 0x2c]
mov byte [edi + eax], 0x62
jmp 0x1007681c
mov al, byte [esp + 0x38]
test al, al
je 0x10076820
mov ecx, dword [esp + 0x24]
lea edx, [edi + ecx]
push edx
push 0
push 0x1c
push esi
call fcn.10057e50
add esp, 0x10
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 1
inc dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
and ecx, 0xff
push eax
mov eax, dword [esp + 0x28]
sub edx, ecx
push edx
push eax
push ebp
call fcn.10077450
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x54]
push edx
mov edx, dword [esp + 0x70]
push eax
mov eax, dword [esp + 0x78]
push ecx
lea ecx, [edx + eax*2]
mov eax, dword [esp + 0x38]
xor edx, edx
mov dl, byte [eax + ecx*2 + 0x100821ac]
push edx
push esi
call fcn.1004aab0
mov eax, dword [esp + 0x5c]
add esp, 0x28
test eax, eax
mov dword [esp + 0x20], edi
je 0x10076929
mov ecx, eax
push 1
mov edx, dword [ecx]
mov ecx, dword [esp + 0x28]
add edi, ecx
mov eax, dword [edx + 0x10]
push edi
push ebp
mov dword [esp + 0x90], eax
mov dword [esp + 0x78], edi
call fcn.1005afa0
mov edx, dword [esp + 0x90]
push edi
push edx
push ebp
call fcn.10058c90
mov eax, dword [esp + 0x9c]
push eax
call fcn.1005a850
add esp, 0x1c
test eax, eax
je 0x100768dc
mov ecx, dword [esp + 0x3c]
push ecx
push edi
push 0x4c
push esi
call fcn.10057e50
add esp, 0x10
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x84]
push edx
push eax
call fcn.10059bb0
add esp, 8
cmp al, 0x62
je 0x10076923
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x84]
push ecx
push edx
call fcn.10077310
add esp, 8
test eax, eax
jne 0x10076923
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x4c]
push eax
push 1
push ecx
push ebp
call fcn.10077450
add esp, 0x10
mov edi, dword [esp + 0x20]
jmp 0x10076951
mov al, byte [esp + 0x84]
test al, al
je 0x10076952
mov edx, dword [esp + 0x24]
lea eax, [edi + edx]
push eax
push 0
push 0x1c
push esi
call fcn.10057e50
add esp, 0x10
mov dword [esp + 0x60], 0
inc edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.10029770
push esi
call fcn.100589e0
add esp, 0xc
mov dword [ebx + 0x2c], eax
test edi, edi
je 0x1007699c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
push edi
push eax
push ecx
mov ecx, dword [esp + 0x6c]
push edx
mov edx, dword [esp + 0x28]
xor eax, eax
mov al, byte [ecx + edx*2 + 0x100821b4]
push eax
push esi
call fcn.1004aab0
add esp, 0x18
mov eax, dword [esp + 0x30]
push eax
push ebx
call fcn.100773f0
mov ecx, dword [esp + 0x3c]
push ecx
push ebx
call fcn.100773f0
mov eax, dword [esp + 0x78]
add esp, 0x10
test eax, eax
jne 0x10076ab9
mov edx, dword [esp + 0x48]
mov eax, dword [edx + 0xc]
test byte [eax + 0x2c], 0x20
jne 0x10076a07
mov edi, dword [ebp + 0x48]
mov eax, dword [esp + 0x40]
inc edi
push edi
push eax
push 0x6e
push esi
mov dword [ebp + 0x48], edi
call fcn.10057e50
mov ecx, dword [esp + 0x20]
push edi
push 0xffffffffffffffff
push ecx
push ebp
call fcn.1005b130
mov edx, dword [esp + 0x30]
push edi
push edx
push 0x40
push esi
call fcn.10057e50
add esp, 0x30
jmp 0x10076ab9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x40]
cmp ecx, edx
je 0x10076ab9
push eax
call fcn.1004e640
xor edx, edx
mov dword [esp + 0x88], eax
mov dx, word [eax + 0x32]
push edx
push ebp
call fcn.1005c700
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x90]
xor edi, edi
add esp, 0xc
cmp word [eax + 0x32], di
jbe 0x10076a91
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x84]
lea edx, [edi + ecx]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x48]
push edx
mov dx, word [ecx + edi*2]
push edx
push eax
call fcn.1005e9b0
mov edx, dword [esp + 0x4c]
add esp, 8
movsx ecx, ax
push ecx
push edx
push 0x2e
push esi
call fcn.1004aaf0
mov ecx, dword [esp + 0x98]
xor eax, eax
add esp, 0x14
inc edi
mov ax, word [ecx + 0x32]
cmp edi, eax
jl 0x10076a47
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x68]
xor edx, edx
mov dx, word [eax + 0x32]
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x54]
push ecx
push edx
push eax
push 0x42
push esi
call fcn.1004aab0
add esp, 0x18
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 0x24]
test ch, 0x10
je 0x10076acb
mov byte [ebx + 0x25], 0x9d
jmp 0x10076add
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x10076ad9
mov byte [ebx + 0x25], 8
jmp 0x10076add
mov byte [ebx + 0x25], 9
mov ecx, dword [esp + 0x40]
mov dword [ebx + 0x28], ecx
mov dl, byte [eax + 0x26]
and dl, 1
mov byte [ebx + 0x26], dl
mov cl, byte [eax + 0x24]
test cl, 0xf
jne 0x10077117
mov byte [ebx + 0x27], 1
jmp 0x10077117
test dh, 0x20
je 0x100770d6
mov eax, dword [ebp + 0x44]
mov edx, dword [ebp + 0x48]
xor ecx, ecx
mov dword [esp + 0x64], eax
inc eax
inc edx
mov dword [ebp + 0x44], eax
mov eax, edx
push esi
mov dword [esp + 0x24], ecx
mov dword [ebp + 0x48], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x50], ecx
call fcn.10058960
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x1c], eax
xor eax, eax
add esp, 4
mov edx, dword [ecx + 0x10]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], edx
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx]
mov dword [esp + 0x38], eax
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x40]
mov byte [ebx + 0x25], 0x12
mov dword [ebx + 0x28], eax
mov al, byte [edi + 0x29]
mov dword [esp + 0x54], edx
cmp al, 1
jbe 0x10076c4e
mov edi, dword [esp + 0x84]
and eax, 0xff
sub eax, edi
mov edx, dword [esp + 0x28]
dec eax
mov dword [esp + 0x60], eax
lea ecx, [eax + eax*4]
shl ecx, 4
add ecx, 0x58
push ecx
push edx
call fcn.100299e0
add esp, 8
mov dword [esp + 0x2c], eax
test eax, eax
jne 0x10076bc5
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret
mov cl, byte [esp + 0x60]
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x48]
inc cl
and ecx, 0xff
lea edi, [eax + 8]
mov dword [eax + 4], ecx
mov dword [eax], ecx
mov ecx, 0x14
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 4]
mov ecx, dword [esp + 0x60]
add edx, 8
cmp ecx, 1
jl 0x10076c55
add eax, 0x58
mov dword [esp + 0x68], ecx
mov dword [esp + 0x58], eax
lea eax, [ebx + 0x6c]
mov dword [esp + 0x5c], eax
mov ecx, dword [esp + 0x5c]
xor eax, eax
mov edi, dword [esp + 0x58]
mov al, byte [ecx]
mov ecx, 0x14
lea esi, [eax + eax*4]
mov eax, dword [esp + 0x68]
shl esi, 4
add esi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
add esi, 0x48
add ecx, 0x50
dec eax
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], ecx
mov dword [esp + 0x68], eax
jne 0x10076c10
jmp 0x10076c55
mov edx, dword [edi + 4]
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x80]
test byte [eax + 0x22], 8
jne 0x10076ccf
mov ecx, dword [esp + 0x34]
test byte [ecx + 0x2c], 0x20
jne 0x10076c8b
mov eax, dword [ebp + 0x48]
mov edx, dword [esp + 0x1c]
inc eax
push eax
push 0
push 0x1c
push edx
mov dword [ebp + 0x48], eax
mov dword [esp + 0x40], eax
call fcn.10057e50
add esp, 0x10
jmp 0x10076cc2
mov eax, dword [esp + 0x34]
push eax
call fcn.1004e640
mov esi, eax
mov eax, dword [ebp + 0x44]
xor edx, edx
mov dword [esp + 0x34], eax
lea ecx, [eax + 1]
mov dword [ebp + 0x44], ecx
mov dx, word [esi + 0x32]
push edx
push eax
mov eax, dword [esp + 0x28]
push 0x38
push eax
call fcn.10057e50
push esi
push ebp
call fcn.100589f0
add esp, 0x1c
mov eax, dword [ebp + 0x48]
inc eax
mov ecx, eax
mov dword [ebp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x1c]
xor edi, edi
push edx
push edi
push 0x19
push eax
call fcn.10057e50
mov esi, dword [esp + 0x54]
mov dword [esp + 0x88], eax
add esp, 0x10
mov eax, dword [esi + 0xc]
cmp eax, 1
jle 0x10076d92
cmp eax, edi
mov dword [esp + 0x68], edi
jle 0x10076d92
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x3c]
mov ecx, dword [esi + 0x14]
mov edx, dword [esp + 0x60]
lea eax, [ecx + edx]
mov edx, dword [esp + 0x38]
cmp eax, edx
mov ecx, dword [eax]
je 0x10076d57
test byte [ecx + 4], 1
jne 0x10076d57
test byte [eax + 0x14], 0x12
jne 0x10076d57
test word [eax + 0x12], 0xfff
je 0x10076d57
mov eax, dword [esp + 0x28]
push 0
push ecx
push eax
call fcn.1005b400
mov ecx, dword [esp + 0x34]
push eax
push edi
push ecx
call fcn.10056c50
add esp, 0x18
mov edi, eax
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x60]
mov ecx, dword [esi + 0xc]
inc eax
add edx, 0x30
cmp eax, ecx
mov dword [esp + 0x68], eax
mov dword [esp + 0x60], edx
jl 0x10076d11
test edi, edi
mov dword [esp + 0x3c], edi
je 0x10076d96
push 0
push edi
push 0
push 0x48
push ebp
call fcn.10056b70
mov edi, eax
add esp, 0x14
mov dword [esp + 0x3c], edi
jmp 0x10076d96
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
xor ecx, ecx
mov dword [esp + 0x5c], 0xf0
mov dword [esp + 0x58], ecx
cmp dword [eax + 0xc], ecx
jle 0x1007703f
mov dword [esp + 0x24], ecx
mov eax, dword [eax + 0x14]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
add eax, edx
mov edx, dword [eax + 8]
cmp edx, ecx
je 0x10076dd3
test byte [eax + 0x13], 2
je 0x1007701c
mov eax, dword [eax]
xor esi, esi
test edi, edi
mov dword [esp + 0x68], esi
je 0x10076dea
test byte [eax + 4], 1
jne 0x10076dea
mov dword [edi + 0xc], eax
mov eax, edi
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x5c]
push ecx
push edx
push 0
push 0
push eax
mov eax, dword [esp + 0x40]
push eax
push ebp
call fcn.10073790
mov edi, eax
add esp, 0x1c
test edi, edi
mov dword [esp + 0x74], edi
je 0x10077018
mov edx, dword [esp + 0x84]
xor ecx, ecx
mov cl, byte [ebx + 0x24]
push 0
push ecx
mov ecx, dword [esp + 0x34]
lea eax, [edi + 0x2e0]
push edx
push eax
push ecx
push ebp
call fcn.10075bd0
mov edx, dword [esp + 0x98]
add esp, 0x18
test byte [edx + 0x22], 8
jne 0x10076f80
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x58]
mov ecx, dword [eax + 0xc]
dec ecx
cmp esi, ecx
jne 0x10076e5e
or esi, 0xffffffff
mov edx, dword [esp + 0x34]
mov dword [esp + 0x48], esi
test byte [edx + 0x2c], 0x20
jne 0x10076ea3
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x10]
push 0
push eax
push ecx
push 0xffffffffffffffff
push edx
push ebp
call fcn.1005b090
mov ecx, dword [esp + 0x34]
push esi
push eax
mov eax, dword [esp + 0x50]
push 0
push eax
push 0x80
push ecx
call fcn.1004aab0
add esp, 0x30
mov esi, eax
jmp 0x10076f80
push edx
call fcn.1004e640
xor edi, edi
mov dword [esp + 0x18], eax
mov di, word [eax + 0x32]
push edi
push ebp
call fcn.1005c700
add esp, 0xc
xor esi, esi
test edi, edi
mov dword [esp + 0x60], eax
jle 0x10076ef5
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x10]
push 0
lea ecx, [esi + eax]
mov eax, dword [esp + 0x18]
push ecx
push edx
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x40]
movsx edx, word [ecx + esi*2]
push edx
push eax
push ebp
call fcn.1005b090
add esp, 0x18
inc esi
cmp esi, edi
jl 0x10076ec7
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x60]
test eax, eax
je 0x10076f1d
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
push edi
push esi
push 0
push ecx
push 0x43
push edx
call fcn.1004aab0
add esp, 0x18
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x48]
test eax, eax
jl 0x10076f6a
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x1c]
push eax
push edi
push esi
push 0x30
push ecx
call fcn.1004aaf0
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x30]
push 0
push edx
push eax
push 0x6c
push ecx
call fcn.1004aaf0
mov eax, dword [esp + 0x70]
add esp, 0x28
test eax, eax
je 0x10076f6a
mov edx, dword [esp + 0x1c]
push 0x10
push edx
call fcn.1004ace0
add esp, 8
push edi
push esi
push ebp
call fcn.1005c730
mov esi, dword [esp + 0x74]
mov edi, dword [esp + 0x80]
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push 0x11
push edx
call fcn.10057e50
add esp, 0x10
test esi, esi
je 0x10076fab
mov eax, dword [esp + 0x1c]
push esi
push eax
call fcn.10057e70
add esp, 8
mov al, byte [edi + 0x27]
test al, al
je 0x10076fba
mov dword [esp + 0x6c], 1
mov eax, dword [edi + 0x318]
mov ecx, dword [eax + 0x24]
test ch, 2
je 0x10077007
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x10076fdb
mov ecx, dword [esp + 0x20]
mov edx, dword [eax + 0x1c]
cmp edx, ecx
jne 0x10077007
mov edx, dword [esp + 0x34]
test byte [edx + 0x2c], 0x20
je 0x10076ff3
mov ecx, dword [eax + 0x1c]
mov edx, dword [ecx + 0x38]
and edx, 3
cmp dl, 2
je 0x10077007
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
or ah, 0x10
mov dword [esp + 0x5c], eax
jmp 0x1007700f
mov dword [esp + 0x20], 0
push edi
call fcn.1007a660
add esp, 4
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x24]
inc ecx
mov edx, dword [eax + 0xc]
add esi, 0x30
cmp ecx, edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x24], esi
jl 0x10076db5
mov eax, dword [esp + 0x20]
test eax, eax
mov dword [ebx + 0x30], eax
je 0x10077051
mov ecx, dword [esp + 0x64]
mov dword [ebx + 8], ecx
test edi, edi
je 0x1007706a
mov edx, dword [esp + 0x28]
push edi
push edx
mov dword [edi + 0xc], 0
call fcn.1004e1e0
add esp, 8
mov esi, dword [esp + 0x1c]
push esi
call fcn.100589e0
push eax
mov eax, dword [esp + 0x80]
push eax
push esi
call fcn.1004ac80
mov ecx, dword [ebx + 0xc]
push ecx
push 0
push 0x10
push esi
call fcn.10057e50
mov edx, dword [esp + 0x38]
push edx
push esi
call fcn.100589b0
mov eax, dword [esp + 0xa8]
add esp, 0x28
cmp byte [eax + 0x29], 1
jbe 0x100770be
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
push edx
call fcn.10029770
add esp, 8
mov eax, dword [esp + 0x6c]
test eax, eax
jne 0x10077117
mov eax, dword [esp + 0x38]
push eax
push ebx
call fcn.100773f0
add esp, 8
jmp 0x10077117
test byte [esp + 0x78], 8
je 0x100770e3
mov byte [ebx + 0x25], 0x9d
jmp 0x10077117
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov dl, byte [ecx + 0x100821b8]
mov dword [ebx + 0x28], eax
mov byte [ebx + 0x25], dl
mov edx, dword [esp + 0x40]
push edx
push eax
xor eax, eax
mov al, byte [ecx + 0x100821ba]
push eax
push esi
call fcn.10057e50
add esp, 0x10
inc eax
mov byte [ebx + 0x27], 1
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x44]
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
jle 0x1007718e
mov edi, dword [esp + 0x50]
mov dword [esp + 0x84], eax
test byte [esi + 0x14], 6
jne 0x1007717a
mov eax, dword [esi + 0x28]
mov ecx, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
and eax, ecx
mov ecx, dword [esi + 0x2c]
and ecx, edx
or eax, ecx
je 0x10077157
mov ecx, dword [esp + 0x80]
mov byte [ecx + 0x27], 1
jmp 0x1007717a
mov ecx, dword [ebx]
mov eax, dword [esi]
test ecx, ecx
je 0x10077165
test byte [eax + 4], 1
je 0x1007717a
push 8
push edi
push eax
push ebp
call fcn.1005bd40
mov al, byte [esi + 0x14]
add esp, 0x10
or al, 4
mov byte [esi + 0x14], al
mov eax, dword [esp + 0x84]
add esi, 0x30
dec eax
mov dword [esp + 0x84], eax
jne 0x10077130
mov eax, dword [esp + 0x44]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [esp + 0x38], edi
jle 0x10077285
mov dword [esp + 0x80], eax
test byte [edi + 0x14], 6
jne 0x10077269
cmp word [edi + 0x12], 0x402
jne 0x10077269
mov edx, dword [esp + 0x10]
mov eax, dword [edi + 8]
cmp eax, edx
jne 0x10077269
cmp dword [ebx], 0
jne 0x10077269
mov eax, dword [edi]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
push 0
mov dword [esp + 0x88], eax
mov eax, dword [edi + 0xc]
push 3
push ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x54]
push eax
push ecx
push edx
call fcn.10075330
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x10077269
test byte [esi + 0x14], 4
jne 0x10077269
mov eax, dword [esp + 0x28]
push 0x30
push eax
call fcn.100299e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10077261
mov esi, dword [esi]
mov eax, dword [esp + 0x50]
mov ecx, 0xc
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x84]
push 8
push eax
push ebx
mov edx, dword [ecx + 0xc]
push ebp
mov dword [ebx + 0xc], edx
call fcn.1005bd40
mov ecx, dword [esp + 0x38]
push ebx
push ecx
call fcn.10029770
add esp, 0x18
mov ebx, dword [esp + 0x70]
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x80]
add edi, 0x30
dec eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x80], eax
jne 0x100771ab
cmp dword [ebx], 0
je 0x100772ff
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100589e0
mov edx, dword [ebx]
mov dword [ebx + 0x1c], eax
push edx
push 1
push 0x19
push ecx
call fcn.10057e50
push ebp
call fcn.1006a260
mov edx, dword [esp + 0x5c]
add esp, 0x18
xor edi, edi
mov eax, dword [edx + 0xc]
mov esi, dword [edx + 0x14]
test eax, eax
jle 0x100772ff
test byte [esi + 0x14], 6
jne 0x100772f4
mov eax, dword [esi + 0x28]
mov ecx, dword [ebx + 0x40]
and eax, ecx
mov ecx, dword [esi + 0x2c]
and ecx, dword [ebx + 0x44]
or eax, ecx
jne 0x100772f4
mov eax, dword [esp + 0x50]
mov ecx, dword [esi]
push 8
push eax
push ecx
push ebp
call fcn.1005bd40
mov al, byte [esi + 0x14]
mov edx, dword [esp + 0x54]
add esp, 0x10
or al, 4
mov byte [esi + 0x14], al
mov eax, dword [edx + 0xc]
inc edi
add esi, 0x30
cmp edi, eax
jl 0x100772bd
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x44]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret