Function at 0x505320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x405216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x404788
mov eax, dword [0x539840]
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
lea ecx, [ebp - 0x48]
xor edi, edi
push eax
push ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x48], edi
call esi
mov ecx, dword [ebp - 0x48]
mov ebx, dword [ebp + 8]
movsx eax, word [0x53a13c]
mov edx, dword [ecx + 0x14]
push edi
sub eax, edx
push 8
mov edx, eax
shl edx, 5
add edx, eax
mov eax, dword [ecx + 0xc]
lea ecx, [eax + edx*8]
mov eax, dword [0x538c1c]
mov dword [ebp - 0x4c], ecx
lea ecx, [ebx + 0x28]
mov edx, dword [eax]
mov dword [ebp - 0x6c], ecx
push ecx
lea ecx, [ebx + 0x14]
push 0x311
push ecx
push 0x178
push eax
call dword [edx + 0x54]
cmp eax, edi
fnclex
jge 0x5053d2
mov ecx, dword [0x538c1c]
push 0x54
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [0x538c1c]
lea eax, [ebx + 0x3c]
push edi
push 6
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0x6c]
push 0x311
push eax
push 0x178
push ecx
call dword [edx + 0x54]
cmp eax, edi
fnclex
jge 0x50540e
mov ecx, dword [0x538c1c]
push 0x54
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
mov edx, 0x42ab3c
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 6
push 5
lea edi, [edx + 0x14]
push 0
push edi
lea eax, [ebp - 0x28]
push 0x179
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, 0x42ab54
lea ecx, [ebp - 0x28]
call ebx
push 0
push 6
push 5
push 0
push edi
lea ecx, [ebp - 0x28]
push 0x1b3
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x20]
mov eax, dword [edx + 0xc]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
push 0x1c6
movsx edx, word [0x53a140]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
push 0xed
shl edx, 7
push 0x63
push 1
lea ecx, [edx + eax + 0x48]
lea edx, [ebp - 0x3c]
push edx
push 2
push 0xf
push edi
lea eax, [ebp - 0x18]
push 0x1d1
push eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x3c], 0x4011
call fcn.0043b900
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
lea ecx, [ebp - 0x20]
push ecx
call edi
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x20]
mov eax, dword [edx + 0xc]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
push 0x1c6
movsx edx, word [0x53a140]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
push 0xed
shl edx, 7
mov dword [ebp - 0x3c], 0x4011
push 0x63
lea ecx, [edx + eax + 0x49]
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3c]
push 1
push edx
push 2
add eax, 0x14
push 0xf
push eax
lea ecx, [ebp - 0x18]
push 0x1eb
push ecx
call fcn.0043b900
lea edx, [ebp - 0x20]
push edx
call edi
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x20]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call esi
mov eax, dword [ebp - 0x20]
push 0x1c6
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
push 0xed
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
push 9
push 1
lea eax, [ecx + edx + 0x4a]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
push ecx
push 2
lea eax, [edx + 0x14]
push 0xd
push eax
lea eax, [ebp - 0x18]
push 0x205
push eax
mov dword [ebp - 0x3c], 0x4011
call fcn.0043b900
lea ecx, [ebp - 0x20]
push ecx
call edi
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x20]
mov eax, dword [edx + 0xc]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
push 0x53a168
movsx edx, word [0x53a140]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
shl edx, 7
lea ecx, [edx + eax + 0x48]
push ecx
call fcn.0045dc20
lea edx, [ebp - 0x20]
mov dword [ebp - 0x40], eax
push edx
call edi
cmp word [ebp - 0x40], 0
je 0x5055fe
mov eax, dword [ebp + 8]
push 0
push 6
push 5
add eax, 0x14
push 0
push eax
push 0x21d
push 0x53a168
call fcn.0043cac0
test ax, ax
je 0x5055fe
mov word [0x539852], 0x3e7
mov edx, 0x42ab60
lea ecx, [ebp - 0x28]
call ebx
mov ecx, dword [ebp + 8]
push 0
push 6
push 5
lea eax, [ecx + 0x28]
push 0
push eax
lea edx, [ebp - 0x28]
push 0x179
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x20]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call esi
mov eax, dword [ebp - 0x20]
push 0x1c6
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
push 0xed
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov dword [ebp - 0x3c], 0x4002
lea eax, [ecx + edx + 0x4c]
lea edx, [ebp - 0x3c]
movsx ecx, word [0x539848]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
push ecx
push 0
push edx
push 4
add eax, 0x28
push 0x19
push eax
lea ecx, [ebp - 0x18]
push 0x1bb
push ecx
call fcn.0043b900
lea edx, [ebp - 0x20]
push edx
call edi
mov eax, dword [ebp - 0x4c]
movsx edx, word [0x53a140]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
mov dword [ebp - 0x70], ecx
shl edx, 7
mov dword [ebp - 0x74], eax
cmp word [edx + eax + 0x4c], 0
jle 0x505712
mov eax, dword [0x539840]
lea ecx, [ebp - 0x20]
push eax
push ecx
call esi
mov edx, dword [ebp + 8]
push 0
push 6
push 5
lea eax, [edx + 0x28]
mov edx, dword [ebp - 0x70]
push 0
mov ecx, dword [ebp - 0x74]
push eax
push 0x1f9
movsx eax, word [0x53a140]
sub eax, edx
shl eax, 7
movsx eax, word [eax + ecx + 0x4c]
mov ecx, dword [ebp - 0x20]
sub eax, dword [ecx + 0x14]
mov edx, eax
shl edx, 5
add edx, eax
mov eax, dword [ecx + 0xc]
lea ecx, [eax + edx*8 + 0x14]
push ecx
call fcn.0043cac0
lea edx, [ebp - 0x20]
push edx
call edi
movsx eax, word [0x53a140]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
sub eax, ecx
xor ecx, ecx
shl eax, 7
mov cl, byte [eax + edx + 0x54]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [ebp - 0x78], edx
fild dword [ebp - 0x78]
fadd qword [0x404780]
call dword [sym.imp.MSVBVM60.DLL___vbaFPFix]
fmul qword [0x402d70]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov ecx, dword [0x538c1c]
push 0
push 8
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx + 0x50]
push eax
lea eax, [ecx + 0x3c]
mov ecx, dword [0x538c1c]
push 0x311
push eax
push 0x178
push ecx
call dword [edx + 0x54]
test eax, eax
fnclex
jge 0x50579d
mov edx, dword [0x538c1c]
push 0x54
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, 0x42ab70
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
push 0
push 6
push 5
add eax, 0x3c
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x178
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, 0x42ab9c
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 6
push 5
lea eax, [edx + 0x3c]
push 0
push eax
lea eax, [ebp - 0x28]
push 0x204
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, 0x42aa7c
lea ecx, [ebp - 0x28]
call ebx
mov ecx, dword [ebp + 8]
push 0
push 6
push 5
lea eax, [ecx + 0x3c]
push 0
push eax
lea edx, [ebp - 0x28]
push 0x23a
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, 0x42abac
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
push 0
push 6
push 5
add eax, 0x3c
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x26b
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, 0x42abc0
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 6
push 5
lea eax, [edx + 0x3c]
push 0
push eax
lea eax, [ebp - 0x28]
push 0x2b0
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx ecx, word [0x53a140]
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
sub ecx, eax
shl ecx, 7
cmp byte [ecx + edx + 0x54], 0x1e
jae 0x5059f9
mov edx, 0x424388
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
push 0
push 0
push 0
add eax, 0x3c
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x1f1
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x5058ed
mov word [0x539852], 0x13
mov edx, 0x424388
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 0
push 0
lea eax, [edx + 0x3c]
push 0
push eax
lea eax, [ebp - 0x28]
push 0x227
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x505930
mov word [0x539852], 8
mov edx, 0x424388
lea ecx, [ebp - 0x28]
call ebx
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
lea eax, [ecx + 0x3c]
push 0
push eax
lea edx, [ebp - 0x28]
push 0x258
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x505973
mov word [0x539852], 4
mov edx, 0x424388
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
push 0
push 0
push 0
add eax, 0x3c
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x29d
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x5059b6
mov word [0x539852], 0x6e
mov edx, 0x424388
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 0
push 0
lea eax, [edx + 0x3c]
push 0
push eax
lea eax, [ebp - 0x28]
push 0x2db
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x5059f9
mov word [0x539852], 0x15
movsx ecx, word [0x53a140]
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x74]
sub ecx, edx
mov dword [ebp - 0x1c], 0xf0
shl ecx, 7
xor edx, edx
mov dl, byte [ecx + eax + 0x54]
mov ecx, 1
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x5c]
jg 0x5060fb
mov eax, dword [ebp - 0x1c]
add eax, 0x89
cmp eax, 0x314
mov dword [ebp - 0x1c], eax
jne 0x505a4e
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], 0x179
add eax, 0x14
mov dword [ebp + 8], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xc]
movsx edx, word [0x53a140]
sub edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
shl edx, 7
mov eax, dword [edx + eax + 0x50]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov al, byte [edx + ecx*8 + 6]
test al, al
jne 0x505c49
mov edx, 0x42ab2c
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
push 0
push 6
add eax, 0x50
push 5
push 0
push eax
lea edx, [ebp - 0x28]
push ecx
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x24]
mov eax, dword [eax + 0xc]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x24]
movsx edx, word [0x53a140]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
shl edx, 7
mov ecx, dword [edx + eax + 0x50]
lea edx, [ebp - 0x20]
push ecx
push edx
call esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov edx, dword [eax + 0x14]
push 0x2710
sub ecx, edx
mov edx, dword [eax + 0xc]
push 0xffffd8f0
mov dword [ebp - 0x3c], 0x4003
lea eax, [edx + ecx*8]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
push ecx
push 4
lea eax, [edx + 0x50]
push 0x23
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x20
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.0043b900
lea edx, [ebp - 0x20]
mov dword [ebp - 0x40], eax
push edx
call edi
lea eax, [ebp - 0x24]
push eax
call edi
cmp word [ebp - 0x40], 0
je 0x505b6f
mov ecx, dword [ebp - 0x4c]
movsx edx, word [0x53a140]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, 7
mov eax, dword [edx + eax + 0x50]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov eax, dword [edx + ecx*8]
test eax, eax
je 0x505b6f
mov dword [0x53a16c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call esi
mov eax, dword [ebp - 0x24]
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x50]
lea ecx, [ebp - 0x20]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
push 0x3e8
push 0
mov dword [ebp - 0x3c], 0x4002
lea ecx, [eax + edx*8 + 4]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x1c]
push edx
push 3
add eax, 0x50
push 0x19
add ecx, 0x4e
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.0043b900
lea eax, [ebp - 0x20]
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
call edi
mov edx, 0x4252f4
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 0
push 9
lea eax, [edx + 0x50]
push 0
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x73
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x5060e9
mov edx, dword [ebp - 0x14]
add edx, 0x95
mov word [0x539852], dx
jmp 0x5060e9
cmp al, 1
jne 0x505d49
mov edx, 0x42ab9c
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
push 0
push 6
add eax, 0x50
push 5
push 0
push eax
lea edx, [ebp - 0x28]
push ecx
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x24]
mov eax, dword [eax + 0xc]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x24]
movsx edx, word [0x53a140]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
shl edx, 7
mov ecx, dword [edx + eax + 0x50]
lea edx, [ebp - 0x20]
push ecx
push edx
call esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov edx, dword [eax + 0x14]
push 0x3b9ac9ff
sub ecx, edx
mov edx, dword [eax + 0xc]
push 0
mov dword [ebp - 0x3c], 0x4003
lea eax, [edx + ecx*8]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
push ecx
push 3
lea eax, [edx + 0x50]
push 0x44
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x22
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.0043b900
lea edx, [ebp - 0x20]
push edx
call edi
lea eax, [ebp - 0x24]
push eax
call edi
mov edx, 0x4252f4
lea ecx, [ebp - 0x28]
call ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
push 0
push 0
push 9
lea eax, [ecx + 0x50]
push 0
push eax
add edx, 0x72
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x5060e9
jmp 0x5060d9
cmp al, 2
jne 0x505e28
mov edx, 0x42aa7c
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 6
push 5
lea eax, [edx + 0x50]
push 0
push eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push eax
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call esi
mov eax, dword [ebp - 0x24]
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x50]
lea ecx, [ebp - 0x20]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
push 0x3b9ac9ff
push 0
mov dword [ebp - 0x3c], 0x4003
lea ecx, [eax + edx*8]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x1c]
push edx
push 3
add eax, 0x50
push 0x44
add ecx, 0x1e
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.0043b900
lea eax, [ebp - 0x20]
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
call edi
mov edx, 0x4252f4
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 0
push 9
lea eax, [edx + 0x50]
push 0
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x6e
jmp 0x505c13
cmp al, 3
jne 0x505fe2
mov edx, 0x42a108
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
push 0
push 6
add eax, 0x50
push 5
push 0
push eax
lea edx, [ebp - 0x28]
push ecx
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x24]
mov eax, dword [eax + 0xc]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x24]
movsx edx, word [0x53a140]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
shl edx, 7
mov ecx, dword [edx + eax + 0x50]
lea edx, [ebp - 0x20]
push ecx
push edx
call esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x3c], 0x4003
lea eax, [edx + ecx*8]
lea edx, [ebp - 0x3c]
movsx ecx, word [0x539770]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x1c]
push 0
push edx
push 4
add eax, 0x50
push 0x23
add ecx, 0x1e
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.0043b900
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x20]
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
call edi
cmp word [ebp - 0x40], 0
je 0x505f39
mov edx, dword [ebp - 0x4c]
movsx ecx, word [0x53a140]
mov eax, dword [edx + 0xc]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x50]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov eax, dword [edx + ecx*8]
mov ecx, dword [0x53a17c]
cmp ecx, eax
je 0x505f2c
mov ecx, eax
mov dword [0x53a17c], ecx
test ecx, ecx
jle 0x505f39
mov word [0x53a170], 0xffff
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call esi
mov eax, dword [ebp - 0x24]
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x50]
lea ecx, [ebp - 0x20]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
push 0xff
push 0
mov dword [ebp - 0x3c], 0x4002
lea ecx, [eax + edx*8 + 4]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x1c]
push edx
push 2
add eax, 0x50
push 0x14
add ecx, 0x4c
push eax
lea edx, [ebp - 0x18]
push ecx
push edx
call fcn.0043b900
lea eax, [ebp - 0x20]
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
call edi
mov edx, 0x4252f4
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 0
push 9
lea eax, [edx + 0x50]
push 0
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x6c
jmp 0x505c13
cmp al, 4
jne 0x5060e9
mov edx, 0x42abc0
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
push 0
push 6
add eax, 0x50
push 5
push 0
push eax
lea edx, [ebp - 0x28]
push ecx
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x24]
mov eax, dword [eax + 0xc]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x24]
movsx edx, word [0x53a140]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
shl edx, 7
mov ecx, dword [edx + eax + 0x50]
lea edx, [ebp - 0x20]
push ecx
push edx
call esi
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov edx, dword [eax + 0x14]
push 0x3b9ac9ff
sub ecx, edx
mov edx, dword [eax + 0xc]
push 0
mov dword [ebp - 0x3c], 0x4003
lea eax, [edx + ecx*8]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
push ecx
push 3
lea eax, [edx + 0x50]
push 0x3f
push eax
mov eax, dword [ebp - 0x1c]
add eax, 0x2a
lea ecx, [ebp - 0x18]
push eax
push ecx
call fcn.0043b900
lea edx, [ebp - 0x20]
push edx
call edi
lea eax, [ebp - 0x24]
push eax
call edi
mov edx, 0x4252f4
lea ecx, [ebp - 0x28]
call ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
push 0
push 0
push 9
lea eax, [ecx + 0x50]
push 0
push eax
add edx, 0x75
lea eax, [ebp - 0x28]
push edx
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x5060e9
mov ecx, dword [ebp - 0x14]
add ecx, 0x95
mov word [0x539852], cx
mov ecx, dword [ebp - 0x14]
mov eax, 1
add ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x505a23
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xc]
movsx edx, word [0x53a140]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x7c], eax
mov eax, dword [eax + 0xc]
sub edx, ecx
shl edx, 7
mov cl, byte [edx + eax + 0x54]
test cl, cl
jbe 0x506122
add dword [ebp + 8], 0x14
mov eax, dword [ebp + 8]
push 0
push 6
lea ecx, [eax + 0x64]
add eax, 0x50
mov dword [ebp - 0x80], eax
mov eax, dword [0x538c1c]
push ecx
mov ecx, dword [ebp - 0x80]
mov edx, dword [eax]
push 0x311
push ecx
push 0x178
push eax
call dword [edx + 0x54]
test eax, eax
fnclex
jge 0x506167
mov edx, dword [0x538c1c]
push 0x54
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, 0x42abd0
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
push 0
push 6
push 5
add eax, 0x50
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x179
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [0x539050]
lea eax, [ebp - 0x20]
push edx
push eax
call esi
mov ecx, dword [ebp + 8]
push 0
movsx edx, word [0x53a140]
push 0
push 0
lea eax, [ecx + 0x50]
push 0
push eax
mov eax, dword [ebp - 0x7c]
push 0x1a7
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
xor ecx, ecx
shl edx, 7
mov cl, byte [edx + eax + 0x38]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
lea eax, [edx + ecx*8]
push eax
call fcn.0043ce70
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x40], eax
push ecx
call edi
cmp word [ebp - 0x40], 0
je 0x506200
mov word [0x539852], 0x32
mov edx, dword [ebp + 8]
mov eax, dword [0x538c1c]
push 0
push 8
lea ecx, [edx + 0x78]
mov edx, dword [eax]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x64
push 0x311
push ecx
push 0x178
push eax
call dword [edx + 0x54]
test eax, eax
fnclex
jge 0x506242
mov edx, dword [0x538c1c]
push 0x54
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, 0x42abe0
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
push 0
push 6
push 5
add eax, 0x64
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x179
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [ebp - 0x7c]
lea eax, [ebp - 0x20]
push edx
push eax
call esi
mov eax, dword [ebp - 0x20]
push 0x1c6
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
push 0xed
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
push 0x7fff
push 0
lea eax, [ecx + edx + 0x24]
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x34], eax
push ecx
push 4
lea eax, [edx + 0x64]
push 0x28
push eax
lea eax, [ebp - 0x18]
push 0x1a5
push eax
mov dword [ebp - 0x3c], 0x4002
call fcn.0043b900
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x40], eax
push ecx
call edi
cmp word [ebp - 0x40], 0
je 0x5062e8
push 0
push 0
push 4
call fcn.0050cdd0
mov edx, 0x425320
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 6
push 5
lea eax, [edx + 0x64]
push 0
push eax
lea eax, [ebp - 0x28]
push 0x1d8
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov ecx, dword [0x539068]
lea edx, [ebp - 0x20]
push ecx
push edx
call esi
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x4c]
push 0
push 0
mov eax, dword [eax + 0xc]
push 0
add edx, 0x64
push 0
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
push edx
mov dword [ebp - 0x70], ecx
movsx edx, word [0x53a140]
sub edx, ecx
xor ecx, ecx
shl edx, 7
mov dword [ebp - 0x74], eax
push 0x1fc
mov cl, byte [edx + eax + 0x22]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
lea eax, [edx + ecx*8]
push eax
call fcn.0043ce70
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x40], eax
push ecx
call edi
cmp word [ebp - 0x40], 0
je 0x50638a
mov word [0x539852], 0x16
mov edx, dword [ebp + 8]
mov eax, dword [0x538c1c]
push 0
push 6
lea ecx, [edx + 0x8c]
mov edx, dword [eax]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0x78
push 0x311
push ecx
push 0x178
push eax
call dword [edx + 0x54]
test eax, eax
fnclex
jge 0x5063cf
mov edx, dword [0x538c1c]
push 0x54
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, 0x42abf4
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
push 0
push 6
push 5
add eax, 0x78
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x178
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, 0x42a90c
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 6
push 5
lea eax, [edx + 0x78]
push 0
push eax
lea eax, [ebp - 0x28]
push 0x1de
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, 0x42ac14
lea ecx, [ebp - 0x28]
call ebx
mov ecx, dword [ebp + 8]
push 0
push 6
push 5
lea eax, [ecx + 0x78]
push 0
push eax
lea edx, [ebp - 0x28]
push 0x22d
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, 0x42ac30
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
push 0
push 6
push 5
add eax, 0x78
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x284
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, 0x42ac40
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 6
push 5
lea eax, [edx + 0x78]
push 0
push eax
lea eax, [ebp - 0x28]
push 0x2be
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx ecx, word [0x53a140]
mov eax, dword [ebp - 0x70]
mov edx, dword [ebp - 0x74]
sub ecx, eax
shl ecx, 7
mov al, byte [ecx + edx + 0x5c]
cmp al, 8
jae 0x506684
mov ecx, dword [0x538c1c]
push 0
movzx ax, al
mov edx, dword [ecx]
push 6
lea eax, [eax + eax*4]
shl eax, 2
movsx ecx, ax
mov eax, dword [ebp + 8]
lea ecx, [ecx + eax + 0x8c]
add eax, 0x8c
push ecx
push 0x311
push eax
mov eax, dword [0x538c1c]
push 0x178
push eax
call dword [edx + 0x54]
test eax, eax
fnclex
jge 0x506535
mov ecx, dword [0x538c1c]
push 0x54
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov edx, 0x424388
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 0
push 0
lea eax, [edx + 0x78]
push 0
push eax
lea eax, [ebp - 0x28]
push 0x1cb
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x506578
mov word [0x539852], 0x18
mov edx, 0x424388
lea ecx, [ebp - 0x28]
call ebx
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
lea eax, [ecx + 0x78]
push 0
push eax
lea edx, [ebp - 0x28]
push 0x21a
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x5065bb
mov word [0x539852], 0x19
mov edx, 0x424388
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp + 8]
push 0
push 0
push 0
add eax, 0x78
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x271
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x5065fe
mov word [0x539852], 0xdc
mov edx, 0x424388
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp + 8]
push 0
push 0
push 0
lea eax, [edx + 0x78]
push 0
push eax
lea eax, [ebp - 0x28]
push 0x2ab
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x506641
mov word [0x539852], 0xe4
mov edx, 0x424388
lea ecx, [ebp - 0x28]
call ebx
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
lea eax, [ecx + 0x78]
push 0
push eax
lea edx, [ebp - 0x28]
push 0x2f0
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x506684
mov word [0x539852], 0xf8
movsx eax, word [0x53a140]
mov edx, dword [ebp - 0x70]
mov dword [ebp - 0x14], 1
sub eax, edx
mov edx, dword [ebp - 0x74]
shl eax, 7
xor ecx, ecx
mov cl, byte [eax + edx + 0x5c]
mov dword [ebp - 0x64], ecx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
jg 0x506ff3
mov edx, 0x4252f4
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
push 0
push 0
lea ecx, [eax + eax*4 + 0x1e]
push 9
push 0
lea eax, [edx + ecx*4]
mov dword [ebp - 0x84], eax
push eax
lea eax, [ebp - 0x28]
push 0x178
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x50670b
mov ecx, dword [ebp - 0x14]
add ecx, 0xb4
mov word [0x539852], cx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xc]
movsx edx, word [0x53a140]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
mov dword [ebp - 0x74], eax
shl edx, 7
mov dword [ebp - 0x70], ecx
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + eax + 0x58]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov al, byte [edx + ecx*4 + 3]
test al, al
jne 0x50690b
mov edx, 0x42ac54
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp - 0x84]
push 0
push 6
push 5
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x18b
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x5067ad
movsx edx, word [0x53a140]
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x74]
sub edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, 7
mov eax, dword [edx + eax + 0x58]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov ax, word [edx + ecx*4]
add ax, 0x3e8
mov word [0x539852], ax
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x24]
mov eax, dword [ecx + 0xc]
push eax
push edx
call esi
mov eax, dword [ebp - 0x24]
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x58]
lea ecx, [ebp - 0x20]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
push 0x7fff
push 0
mov dword [ebp - 0x3c], 0x4002
lea ecx, [eax + edx*4]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
push edx
push 4
push 0x28
push eax
lea ecx, [ebp - 0x18]
push 0x1cc
push ecx
call fcn.0043b900
lea edx, [ebp - 0x20]
mov dword [ebp - 0x40], eax
push edx
call edi
lea eax, [ebp - 0x24]
push eax
call edi
cmp word [ebp - 0x40], 0
je 0x506846
mov ecx, dword [ebp - 0x14]
push 0
push ecx
push 5
call fcn.0050cdd0
mov edx, 0x42ac6c
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp - 0x84]
push 0
push 6
push 5
push 0
push edx
lea eax, [ebp - 0x28]
push 0x1ff
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
push eax
call esi
mov eax, dword [ebp - 0x24]
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x58]
lea ecx, [ebp - 0x20]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
push 0xff
push 0
mov dword [ebp - 0x3c], 0x4011
lea ecx, [eax + edx*4 + 2]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
push edx
push 2
push 0x14
push eax
lea ecx, [ebp - 0x18]
push 0x222
push ecx
call fcn.0043b900
lea edx, [ebp - 0x20]
push edx
call edi
lea eax, [ebp - 0x24]
push eax
call edi
mov ecx, dword [ebp - 0x14]
mov eax, 1
add ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x5066a6
cmp al, 1
jne 0x506aaf
mov edx, 0x42a90c
lea ecx, [ebp - 0x28]
call ebx
mov ecx, dword [ebp - 0x84]
push 0
push 6
push 5
push 0
push ecx
lea edx, [ebp - 0x28]
push 0x18b
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x50697e
movsx eax, word [0x53a140]
mov ecx, dword [ebp - 0x70]
mov edx, dword [ebp - 0x14]
sub eax, ecx
mov ecx, dword [ebp - 0x74]
shl eax, 7
mov eax, dword [eax + ecx + 0x58]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
mov cx, word [eax + edx*4]
add cx, 0x3e8
mov word [0x539852], cx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
call esi
mov eax, dword [ebp - 0x24]
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x58]
lea ecx, [ebp - 0x20]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
push 0x7fff
push 0
mov dword [ebp - 0x3c], 0x4002
lea ecx, [eax + edx*4]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
push edx
push 4
push 0x28
push eax
lea ecx, [ebp - 0x18]
push 0x1cc
push ecx
call fcn.0043b900
lea edx, [ebp - 0x20]
mov dword [ebp - 0x40], eax
push edx
call edi
lea eax, [ebp - 0x24]
push eax
call edi
cmp word [ebp - 0x40], 0
je 0x506a17
mov ecx, dword [ebp - 0x14]
push 0
push ecx
push 6
call fcn.0050cdd0
mov edx, dword [0x539040]
lea eax, [ebp - 0x20]
push edx
push eax
call esi
mov ecx, dword [ebp - 0x4c]
push 0
movsx edx, word [0x53a140]
mov eax, dword [ecx + 0xc]
push 0
push 0
push 0
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
mov ecx, dword [ebp - 0x84]
shl edx, 7
push ecx
push 0x200
mov eax, dword [edx + eax + 0x58]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
xor ecx, ecx
mov cl, byte [eax + edx*4 + 2]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
lea eax, [edx + ecx*8]
push eax
call fcn.0043ce70
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x40], eax
push ecx
call edi
cmp word [ebp - 0x40], 0
je 0x506fe1
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov eax, 1
add edx, 0xbe
add ecx, eax
mov word [0x539852], dx
mov dword [ebp - 0x14], ecx
jmp 0x5066a6
cmp al, 2
jne 0x506c8d
mov edx, 0x42a108
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp - 0x84]
push 0
push 6
push 5
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x18b
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, 0x42ac7c
lea ecx, [ebp - 0x28]
call ebx
mov edx, dword [ebp - 0x84]
push 0
push 6
push 5
push 0
push edx
lea eax, [ebp - 0x28]
push 0x1d2
push eax
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x24]
mov eax, dword [ecx + 0xc]
push eax
push edx
call esi
mov eax, dword [ebp - 0x24]
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x58]
lea ecx, [ebp - 0x20]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
push 0xff
push 0
mov dword [ebp - 0x3c], 0x4011
lea ecx, [eax + edx*4 + 2]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
push edx
push 2
push 0x14
push eax
lea ecx, [ebp - 0x18]
push 0x1fd
push ecx
call fcn.0043b900
lea edx, [ebp - 0x20]
push edx
call edi
lea eax, [ebp - 0x24]
push eax
call edi
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
mov edx, dword [ecx + 0xc]
push edx
push eax
call esi
mov eax, dword [ebp - 0x24]
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x58]
lea ecx, [ebp - 0x20]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
mov dword [ebp - 0x3c], 0x4002
lea ecx, [eax + edx*4]
lea eax, [ebp - 0x3c]
movsx edx, word [0x539770]
push edx
push 0
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x84]
push eax
push 4
push 0x1e
push ecx
lea edx, [ebp - 0x18]
push 0x1aa
push edx
call fcn.0043b900
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x20]
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
call edi
cmp word [ebp - 0x40], 0
je 0x506fe1
mov edx, dword [ebp - 0x4c]
movsx ecx, word [0x53a140]
mov eax, dword [edx + 0xc]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x58]
mov ecx, dword [ebp - 0x14]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
movsx eax, word [edx + ecx*4]
mov ecx, dword [0x53a17c]
cmp ecx, eax
je 0x506c6a
mov ecx, eax
mov dword [0x53a17c], ecx
test ecx, ecx
jle 0x506fe1
mov ecx, dword [ebp - 0x14]
mov eax, 1
add ecx, eax
mov word [0x53a170], 0xffff
mov dword [ebp - 0x14], ecx
jmp 0x5066a6
cmp al, 3
jne 0x506ed7
mov edx, 0x42ac30
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp - 0x84]
push 0
push 6
push 5
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x18b
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x506cfe
movsx edx, word [0x53a140]
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x74]
sub edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, 7
mov eax, dword [edx + eax + 0x58]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov ax, word [edx + ecx*4]
add ax, 0x3e8
mov word [0x539852], ax
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x24]
mov eax, dword [ecx + 0xc]
push eax
push edx
call esi
mov eax, dword [ebp - 0x24]
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x58]
lea ecx, [ebp - 0x20]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
push 0x7fff
push 0
mov dword [ebp - 0x3c], 0x4002
lea ecx, [eax + edx*4]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
push edx
push 4
push 0x28
push eax
lea ecx, [ebp - 0x18]
push 0x1cc
push ecx
call fcn.0043b900
lea edx, [ebp - 0x20]
push edx
call edi
lea eax, [ebp - 0x24]
push eax
call edi
mov edx, 0x42ac90
lea ecx, [ebp - 0x28]
call ebx
mov ecx, dword [ebp - 0x84]
push 0
push 6
push 5
push 0
push ecx
lea edx, [ebp - 0x28]
push 0x1ff
push edx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x24]
mov ecx, dword [eax + 0xc]
push ecx
push edx
call esi
mov eax, dword [ebp - 0x24]
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x58]
lea ecx, [ebp - 0x20]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
sub edx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
push 0x1c6
push 0xed
push 0xfa
lea ecx, [eax + edx*4 + 2]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x3c]
push 0
push edx
push 2
mov dword [ebp - 0x34], ecx
push 0x14
push eax
lea ecx, [ebp - 0x18]
push 0x22c
push ecx
mov dword [ebp - 0x3c], 0x4011
call fcn.0043b900
lea edx, [ebp - 0x20]
push edx
call edi
lea eax, [ebp - 0x24]
push eax
call edi
mov ecx, dword [ebp - 0x4c]
movsx edx, word [0x53a140]
mov eax, dword [ecx + 0xc]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, 7
mov eax, dword [edx + eax + 0x58]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
xor eax, eax
mov al, byte [edx + ecx*4 + 2]
lea eax, [eax + eax*4]
shl eax, 1
test eax, eax
jle 0x506fe1
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrI4]
mov edx, eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
push eax
push 0x42aca4
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea eax, [eax + eax*4]
lea edx, [ecx + eax*4 + 0x7b]
lea eax, [ebp - 0x2c]
push edx
push 0x24e
push eax
push 3
call fcn.00439580
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x28]
push ecx
push edx
push 2
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStrList]
mov ecx, dword [ebp - 0x14]
mov eax, 1
add esp, 0xc
add ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x5066a6
cmp al, 4
jne 0x506fe1
mov edx, 0x42ac40
lea ecx, [ebp - 0x28]
call ebx
mov eax, dword [ebp - 0x84]
push 0
push 6
push 5
push 0
push eax
lea ecx, [ebp - 0x28]
push 0x18b
push ecx
call fcn.0043cac0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x44], eax
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
cmp word [ebp - 0x44], 0
je 0x506f48
movsx edx, word [0x53a140]
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x74]
sub edx, ecx
mov ecx, dword [ebp - 0x14]
shl edx, 7
mov eax, dword [edx + eax + 0x58]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
mov ax, word [edx + ecx*4]
add ax, 0x3e8
mov word [0x539852], ax
mov ecx, dword [ebp - 0x4c]
lea edx, [ebp - 0x24]
mov eax, dword [ecx + 0xc]
push eax
push edx
call esi
mov eax, dword [ebp - 0x24]
movsx ecx, word [0x53a140]
mov edx, dword [eax + 0x14]
sub ecx, edx
mov edx, dword [eax + 0xc]
shl ecx, 7
mov eax, dword [ecx + edx + 0x58]
lea ecx, [ebp - 0x20]
push eax
push ecx
call esi
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
push 0x1c6
push 0xed
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
sub edx, ecx
push 0x7fff
push 0
mov dword [ebp - 0x3c], 0x4002
lea ecx, [eax + edx*4]
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
push edx
push 4
push 0x28
push eax
lea ecx, [ebp - 0x18]
push 0x1cc
push ecx
call fcn.0043b900
lea edx, [ebp - 0x20]
mov dword [ebp - 0x40], eax
push edx
call edi
lea eax, [ebp - 0x24]
push eax
call edi
cmp word [ebp - 0x40], 0
je 0x506fe1
mov ecx, dword [ebp - 0x14]
push 0
push ecx
push 0xd
call fcn.0050cdd0
mov ecx, dword [ebp - 0x14]
mov eax, 1
add ecx, eax
mov dword [ebp - 0x14], ecx
jmp 0x5066a6
lea edx, [ebp - 0x48]
push edx
call edi
wait
push 0x50703b
jmp 0x507027
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
ret