Function at 0x40d070
Capabilities:
Encode data using base64
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x4c1830]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov dword [esp + 0x878], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x14]
cmp edi, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
jl 0x40d0d6
mov edx, dword [ecx + 0x44]
mov eax, edi
imul eax, eax, 0x1c
mov ecx, dword [eax + edx + 8]
add eax, edx
mov edx, dword [eax]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x14]
mov dword [esp + 0x34], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
jmp 0x40d0dd
add ecx, 4
mov dword [esp + 0x10], ecx
lea eax, [edi + 1]
and eax, 0xff
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x1c]
cmp byte [eax], 0
mov dword [esp + 0x30], eax
je 0x40df01
mov ebx, dword [ebp + 0xc]
jmp 0x40d101
mov edi, dword [ebp + 0x14]
push ebx
lea esi, [esp + 0x34]
call fcn.0040cea0
mov esi, dword [esp + 0x34]
mov ebx, eax
mov al, byte [esi]
add esp, 4
test al, al
je 0x40deec
mov edx, dword [ebp + 0x20]
mov eax, dword [ebp + 8]
push edx
push esi
push eax
call fcn.00403950
mov dword [esp + 0x18], eax
movsx eax, byte [esi]
add eax, 0xffffffdd
add esp, 0xc
cmp eax, 0x57
ja case.0x40d149.36
movzx ecx, byte [eax + 0x40dfc0]
jmp dword [ecx*4 + 0x40df18]
mov eax, dword [ebp + 0x18]
test eax, eax
je case.0x40d149.36
mov esi, eax
lea edi, [esp + 0x85c]
mov ecx, 0xa
lea esp, [esp]
mov eax, esi
cdq
idiv ecx
test eax, eax
jne 0x40d189
lea esi, [esp + 0x85c]
cmp edi, esi
ja 0x40d189
mov byte [edi], 0x20
jmp 0x40d18d
add al, 0x30
mov byte [edi], al
mov esi, edx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov ecx, eax
jne 0x40d170
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x14]
push ecx
push 0
push edx
jmp 0x40d6ad
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov edx, eax
mov edi, dword [edx + 0x38]
test edi, edi
je case.0x40d149.36
movsx eax, byte [edi]
push eax
call fcn.00474858
add esp, 4
test eax, eax
je 0x40d1e5
mov eax, 0x4e
jmp 0x40d250
mov al, byte [edi]
cmp al, 0x61
jl 0x40d1f6
cmp al, 0x7a
jg 0x40d1f6
mov eax, 0x61
jmp 0x40d250
cmp al, 0x41
jl 0x40d205
cmp al, 0x5a
jg 0x40d205
mov eax, 0x41
jmp 0x40d250
cmp al, 0x3d
jne 0x40d210
mov eax, 0x45
jmp 0x40d24f
cmp al, 0x23
jne 0x40d3b1
mov cl, byte [edi + 1]
inc edi
cmp cl, 0x2a
mov eax, 0x44
jne 0x40d22d
mov eax, 0x56
jmp 0x40d24f
cmp cl, 0x26
jne 0x40d239
mov eax, 0x57
jmp 0x40d24f
cmp cl, 0x3f
jne 0x40d245
mov eax, 0x58
jmp 0x40d24f
cmp cl, 0x21
jne 0x40d250
mov eax, 0x59
inc edi
mov ecx, dword [ebp + 8]
push eax
push 4
push ecx
call fcn.004038d0
add esp, 0xc
test eax, eax
je 0x40d3b1
mov dword [esp + 0xc], eax
jmp 0x40d3b1
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov eax, dword [eax + 0x38]
test eax, eax
je case.0x40d149.36
lea edi, [eax + 2]
cmp byte [edi], 0x23
jne 0x40d2af
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 8]
push ecx
push 0
push 0
push 0x49875c
push 0x4988d8
push edx
mov edi, 0x4988d4
jmp 0x40decc
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push 0x49875c
push edx
jmp 0x40dec8
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
or edx, 0xf000000
push edx
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0xc]
push 0x49875c
push eax
push ecx
jmp 0x40decc
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0
push eax
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 8]
push 0x49875c
push ecx
push edx
jmp 0x40decc
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
push edx
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x34]
push 0x49875c
push eax
push ecx
jmp 0x40decc
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.107
mov edi, dword [eax + 0xc]
test edi, edi
je case.0x40d149.107
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
push edx
push 0x49875c
push eax
push ecx
jmp 0x40decc
mov eax, dword [ebp + 0x18]
test eax, eax
je case.0x40d149.36
cmp eax, 0x14
mov edi, eax
jl 0x40d3aa
lea edi, [edi + edi*4 + 0x4bc838]
jmp 0x40d3b1
lea edi, [edi + edi*4 + 0x4bc8b0]
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0
push eax
push 0x49875c
push ecx
push edx
jmp 0x40decc
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
push 0
or ecx, 0xf010000
push ecx
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 0x10]
push 0x49875c
push edx
jmp 0x40dec8
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0
push eax
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x18]
push 0x49875c
push ecx
push edx
jmp 0x40decc
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
push edx
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x28]
push 0x49875c
push eax
push ecx
jmp 0x40decc
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
push 0
or ecx, 0xf020000
push ecx
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 0x14]
push 0x49875c
push edx
jmp 0x40dec8
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0
push eax
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x30]
push 0x49875c
push ecx
push edx
jmp 0x40decc
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
push edx
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x1c]
push 0x49875c
push eax
push ecx
jmp 0x40decc
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
push 0
or ecx, 0xf030000
push ecx
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 0x20]
push 0x49875c
push edx
jmp 0x40dec8
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0
push eax
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x2c]
push 0x49875c
push ecx
push edx
jmp 0x40decc
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
push edx
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x24]
push 0x49875c
push eax
push ecx
jmp 0x40decc
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov cl, byte [eax + 1]
test cl, cl
je case.0x40d149.36
mov byte [esp + 0x85c], 0
xor edx, edx
nop
mov ecx, dword [esp + 0x10]
movzx eax, byte [ecx + 1]
cmp edx, eax
mov eax, 0x4988d0
jl 0x40d5c6
mov eax, 0x4988d4
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d5c8
lea edi, [esp + 0x85c]
sub eax, esi
dec edi
lea esp, [esp]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x40d5e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc edx
cmp edx, 3
rep movsb byte es:[edi], byte [esi]
jl 0x40d5b0
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0xc]
push ecx
push 0
push 0
push 0x49875c
push edx
lea edi, [esp + 0x870]
jmp 0x40dec8
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov ecx, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 8]
push 0
mov edx, eax
movzx edi, byte [edx + 1]
mov eax, dword [esp + 0x14]
push 0
push 0x49875c
shl edi, 4
push eax
add edi, 0x4bc808
push ecx
jmp 0x40decc
mov edx, dword [ebp + 0x10]
imul edi, edi, 0x1c
mov eax, dword [edx + 0x44]
mov eax, dword [eax + edi + 0x18]
test eax, eax
je case.0x40d149.36
mov esi, dword [eax + 0x320]
lea edi, [esp + 0x85c]
mov ecx, 0xf4240
mov eax, esi
cdq
idiv ecx
test eax, eax
jne 0x40d68b
lea esi, [esp + 0x85c]
cmp edi, esi
jbe 0x40d690
add al, 0x30
mov byte [edi], al
inc edi
mov esi, edx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x40d677
mov edx, dword [ebp + 0x28]
push edx
push 0
push 0
mov eax, dword [esp + 0x18]
mov ecx, dword [ebp + 8]
push 0x49875c
push eax
mov byte [edi], 0
push ecx
lea edi, [esp + 0x874]
jmp 0x40decc
mov eax, dword [ebp + 0x24]
test eax, eax
je case.0x40d149.36
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0
push eax
push 0x49875c
push ecx
push edx
mov edi, 0x49875c
jmp 0x40decc
mov eax, dword [esp + 0x10]
test eax, eax
je case.0x40d149.36
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
push 0
or ecx, 0x1000000
push ecx
mov ecx, dword [esp + 0x1c]
mov edi, dword [ecx + 4]
push 0x49875c
push edx
jmp 0x40dec8
mov eax, dword [esp + 0x1c]
test eax, eax
je case.0x40d149.36
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0
or eax, 0xf080000
push eax
mov eax, dword [esp + 0x28]
mov edi, dword [eax]
push 0x49875c
push ecx
push edx
jmp 0x40decc
mov eax, dword [esp + 0x1c]
test eax, eax
je case.0x40d149.36
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
or edx, 0xf090000
push edx
mov edx, dword [esp + 0x28]
mov edi, dword [edx + 4]
push 0x49875c
push eax
push ecx
jmp 0x40decc
mov eax, dword [esp + 0x1c]
test eax, eax
je case.0x40d149.36
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
push 0
or ecx, 0xf0a0000
push ecx
mov ecx, dword [esp + 0x28]
mov edi, dword [ecx + 8]
push 0x49875c
push edx
jmp 0x40dec8
mov eax, dword [esp + 0x1c]
test eax, eax
je case.0x40d149.36
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push edx
mov edx, dword [ebp + 8]
push 0
or eax, 0xf0b0000
push eax
mov eax, dword [esp + 0x28]
mov edi, dword [eax + 0xc]
push 0x49875c
push ecx
push edx
jmp 0x40decc
mov eax, dword [esp + 0x20]
test eax, eax
je case.0x40d149.36
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push 0
or edx, 0x4000000
push edx
mov edx, dword [esp + 0x2c]
mov edi, dword [edx]
push 0x49875c
push eax
push ecx
jmp 0x40decc
mov eax, dword [esp + 0x20]
test eax, eax
je case.0x40d149.36
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [esp + 0x24]
mov edi, dword [eax + 8]
push 0
push 0
push 0x49875c
push ecx
push edx
jmp 0x40decc
mov eax, dword [esp + 0x20]
test eax, eax
je case.0x40d149.36
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0xc]
push ecx
push 0
push 0
push 0x49875c
mov ecx, eax
mov edi, dword [ecx + 4]
push edx
jmp 0x40dec8
mov eax, dword [esp + 0x2c]
test eax, eax
je case.0x40d149.36
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [esp + 0x30]
mov edi, dword [edx + 4]
push 0
push 0
push 0x49875c
push eax
push ecx
jmp 0x40decc
mov ecx, dword [ebp + 0x10]
imul edi, edi, 0x1c
mov edx, dword [ecx + 0x44]
mov ecx, dword [edx + edi + 0xc]
xor eax, eax
test ecx, ecx
je 0x40d8d9
movsx eax, word [ecx + 0xc]
mov dword [esp + 0x50], eax
movzx eax, byte [ecx + 0x14]
test eax, eax
jle 0x40d8f0
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x50]
lea esi, [ecx + edx*4 + 0x4c]
mov ecx, eax
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push ecx
push eax
add edx, 0xa8
push edx
call fcn.00403c70
add esp, 0xc
xor esi, esi
test eax, eax
mov dword [esp + 0x18], eax
jle case.0x40d149.36
mov eax, dword [ebp + 0x28]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
and ecx, 0x3f
or ecx, 0x800
shl ecx, 0x10
push 0
or ecx, edi
mov edi, dword [esp + esi*4 + 0x60]
push ecx
push 0x49875c
push edx
push eax
mov ecx, ebx
call fcn.0040cf30
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x40d915
jmp case.0x40d149.36
mov ecx, dword [ebp + 0x10]
imul edi, edi, 0x1c
mov edx, dword [ecx + 0x44]
mov ecx, dword [edx + edi + 0xc]
xor eax, eax
test ecx, ecx
je 0x40d97b
movsx eax, word [ecx + 0xe]
mov dword [esp + 0x54], eax
movzx eax, byte [ecx + 0x15]
test eax, eax
jle 0x40d992
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x54]
lea esi, [ecx + edx*4 + 0x4c]
mov ecx, eax
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push ecx
push eax
add edx, 0xa8
push edx
call fcn.00403c70
add esp, 0xc
xor esi, esi
test eax, eax
mov dword [esp + 0x18], eax
jle case.0x40d149.36
jmp 0x40d9c0
mov eax, dword [ebp + 0x28]
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov ecx, esi
and ecx, 0x3f
or ecx, 0x600
shl ecx, 0x10
push 0
or ecx, edi
mov edi, dword [esp + esi*4 + 0x60]
push ecx
push 0x49875c
push edx
push eax
mov ecx, ebx
call fcn.0040cf30
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x40d9c0
jmp case.0x40d149.36
mov edx, dword [ebp + 0x10]
imul edi, edi, 0x1c
mov eax, dword [edx + 0x44]
mov eax, dword [eax + edi + 0xc]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x18], ecx
je 0x40da2e
movsx ecx, word [eax + 0x10]
mov dword [esp + 0x4c], ecx
movzx ecx, byte [eax + 0x16]
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x40da4b
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x18]
lea esi, [edx + eax*4 + 0x4c]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
xor esi, esi
test ecx, ecx
jle case.0x40d149.36
mov ecx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + esi*4 + 0x58]
push ecx
mov ecx, dword [ebp + 8]
mov edx, esi
and edx, 0x3f
or edx, 0x500
push 0
shl edx, 0x10
or edx, eax
mov eax, dword [esp + 0x14]
push edx
push 0x49875c
push eax
push ecx
mov ecx, ebx
call fcn.0040cf30
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x40da55
jmp case.0x40d149.36
mov edx, dword [ebp + 0x10]
imul edi, edi, 0x1c
mov eax, dword [edx + 0x44]
mov eax, dword [eax + edi + 0xc]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x18], ecx
je 0x40dac3
movsx ecx, word [eax + 0x12]
mov dword [esp + 0x40], ecx
movzx ecx, byte [eax + 0x17]
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x40dae0
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x18]
lea esi, [edx + eax*4 + 0x4c]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
xor esi, esi
test ecx, ecx
jle case.0x40d149.36
lea ebx, [ebx]
mov ecx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + esi*4 + 0x58]
push ecx
mov ecx, dword [ebp + 8]
mov edx, esi
and edx, 0x3f
or edx, 0xa00
push 0
shl edx, 0x10
or edx, eax
mov eax, dword [esp + 0x14]
push edx
push 0x49875c
push eax
push ecx
mov ecx, ebx
call fcn.0040cf30
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x40daf0
jmp case.0x40d149.36
mov eax, dword [esp + 0x34]
test eax, eax
je case.0x40d149.36
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x34]
push edx
mov edx, dword [ebp + 8]
push 0
or eax, 0x82000000
push eax
push 0x49875c
push ecx
push edx
jmp 0x40decc
mov eax, dword [esp + 0x2c]
test eax, eax
je case.0x40d149.36
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push eax
push 0
or ecx, 0x84000000
push ecx
mov ecx, dword [esp + 0x38]
mov edi, dword [ecx]
push 0x49875c
push edx
jmp 0x40dec8
mov edx, dword [ebp + 0x10]
push edi
push edx
call fcn.00403440
push edi
push eax
mov eax, dword [ebp + 8]
add eax, 0xa8
push eax
call fcn.00403c70
xor esi, esi
add esp, 0x14
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], esi
jle case.0x40d149.36
jmp 0x40dbd1
mov esi, dword [esp + 0x28]
mov eax, dword [ebp + 0x14]
lea ecx, [esp + 0x458]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x5c]
push edx
push esi
push eax
push ecx
call fcn.00403460
mov edx, dword [esp + 0x28]
and esi, 0x3f
or esi, 0x900
shl esi, 0x10
add esp, 0x14
or esi, edx
test eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
jle 0x40dc60
mov eax, esi
or eax, 0x80000000
mov dword [esp + 0x38], eax
lea esp, [esp]
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + eax*4 + 0x460]
mov edi, dword [esp + eax*4 + 0x60]
push esi
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
mov ecx, ebx
call fcn.0040cf30
mov ecx, dword [esp + 0x54]
mov ebx, eax
mov eax, dword [esp + 0x3c]
add esp, 0x18
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x40dc20
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x40dbcd
jmp case.0x40d149.36
mov edx, dword [ebp + 0x10]
push edi
push edx
call fcn.004034c0
push edi
push eax
mov eax, dword [ebp + 8]
add eax, 0xa8
push eax
call fcn.00403c70
xor esi, esi
add esp, 0x14
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], esi
jle case.0x40d149.36
jmp 0x40dcb0
mov esi, dword [esp + 0x28]
nop
mov eax, dword [ebp + 0x14]
lea ecx, [esp + 0x458]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x5c]
push edx
push esi
push eax
push ecx
call fcn.004034e0
mov edx, dword [esp + 0x28]
and esi, 0x3f
or esi, 0x700
shl esi, 0x10
add esp, 0x14
or esi, edx
test eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x24], 0
jle 0x40dd40
mov eax, esi
or eax, 0x80000000
mov dword [esp + 0x38], eax
jmp 0x40dd00
mov edx, dword [ebp + 0x28]
mov eax, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + eax*4 + 0x460]
mov edi, dword [esp + eax*4 + 0x60]
push esi
push ecx
mov ecx, dword [ebp + 8]
push edx
push ecx
mov ecx, ebx
call fcn.0040cf30
mov ecx, dword [esp + 0x54]
mov ebx, eax
mov eax, dword [esp + 0x3c]
add esp, 0x18
inc eax
cmp eax, ecx
mov dword [esp + 0x24], eax
jl 0x40dd00
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x28], eax
jl 0x40dcab
jmp case.0x40d149.36
mov edx, dword [ebp + 0x10]
imul edi, edi, 0x1c
mov eax, dword [edx + 0x44]
mov eax, dword [eax + edi + 0x10]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x18], ecx
je 0x40dd81
movsx ecx, word [eax + 0x10]
mov dword [esp + 0x44], ecx
movzx ecx, byte [eax + 0x16]
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x40dd9e
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x18]
lea esi, [edx + eax*4 + 0x4c]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
xor esi, esi
test ecx, ecx
jle case.0x40d149.36
jmp 0x40ddb0
mov ecx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + esi*4 + 0x58]
push ecx
mov ecx, dword [ebp + 8]
mov edx, esi
and edx, 0x3f
or edx, 0xffff8500
push 0
shl edx, 0x10
or edx, eax
mov eax, dword [esp + 0x14]
push edx
push 0x49875c
push eax
push ecx
mov ecx, ebx
call fcn.0040cf30
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x40ddb0
jmp case.0x40d149.36
mov edx, dword [ebp + 0x10]
imul edi, edi, 0x1c
mov eax, dword [edx + 0x44]
mov eax, dword [eax + edi + 0x10]
xor ecx, ecx
test eax, eax
mov dword [esp + 0x18], ecx
je 0x40de1e
movsx ecx, word [eax + 0x12]
mov dword [esp + 0x48], ecx
movzx ecx, byte [eax + 0x17]
mov dword [esp + 0x18], ecx
test ecx, ecx
jle 0x40de3b
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x18]
lea esi, [edx + eax*4 + 0x4c]
lea edi, [esp + 0x58]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x18]
xor esi, esi
test ecx, ecx
jle case.0x40d149.36
mov ecx, dword [ebp + 0x28]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + esi*4 + 0x58]
push ecx
mov ecx, dword [ebp + 8]
mov edx, esi
and edx, 0x3f
or edx, 0xffff8a00
push 0
shl edx, 0x10
or edx, eax
mov eax, dword [esp + 0x14]
push edx
push 0x49875c
push eax
push ecx
mov ecx, ebx
call fcn.0040cf30
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x40de45
jmp case.0x40d149.36
mov edx, dword [ebp + 0x10]
imul edi, edi, 0x1c
mov ecx, dword [edx + 0x44]
movsx eax, byte [esi + 1]
movzx edx, byte [ecx + edi + 6]
inc esi
add ecx, edi
sub eax, 0x41
cmp eax, edx
mov dword [esp + 0x30], esi
jge case.0x40d149.36
mov edx, dword [ebp + 0x28]
movsx ecx, word [ecx + 4]
push edx
mov edx, dword [esp + 0x10]
push 0
push 0
push 0x49875c
push edx
mov edx, dword [ebp + 0x10]
add ecx, eax
mov edi, dword [edx + ecx*4 + 0x4c]
mov eax, dword [ebp + 8]
push eax
mov ecx, ebx
call fcn.0040cf30
add esp, 0x18
mov ebx, eax
mov eax, dword [esp + 0x30]
mov cl, byte [eax + 1]
inc eax
test cl, cl
mov dword [esp + 0x30], eax
jne 0x40d0fe
mov eax, ebx
mov ecx, dword [esp + 0x87c]
call fcn.0047471e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x87c]
mov eax, dword [ebp + 0xc]
call fcn.0047471e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret