Function at 0x4a4060
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, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x403148
mov eax, dword [0x538a1c]
mov ecx, dword [0x538a20]
mov dword [ebp - 0x20], eax
xor edx, edx
movsx eax, word [0x53984a]
mov dword [ebp - 0x18], ecx
mov ecx, dword [0x539844]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x2c], edx
mov dword [0x538c58], edx
mov dword [ebp - 0x38], eax
mov edi, 1
cmp edi, dword [ebp - 0x38]
jg 0x4a46b1
mov ebx, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov eax, edi
sub eax, ebx
lea eax, [eax + eax*2]
shl eax, 5
cmp word [eax + esi + 0xe], dx
je 0x4a46a5
mov ecx, dword [0x539840]
lea edx, [ebp - 0x2c]
push ecx
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [0x539844]
mov eax, edi
mov esi, dword [ecx + 0x14]
lea edx, [ecx + 0x14]
sub eax, esi
mov esi, dword [ecx + 0xc]
lea ebx, [ecx + 0xc]
lea eax, [eax + eax*2]
shl eax, 5
add eax, esi
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
movsx eax, word [eax + 0x40]
sub eax, dword [esi + 0x14]
mov esi, eax
shl esi, 5
add esi, eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0xc]
cmp word [eax + esi*8 + 0x18], 0
lea esi, [eax + esi*8 + 0x10]
je 0x4a459c
mov edx, dword [ebp - 0x40]
mov al, byte [edx + 0x18]
test al, al
jne 0x4a4153
push edi
call fcn.004a36a0
mov ecx, dword [0x539844]
mov edx, dword [ecx + 0x14]
mov eax, edi
sub eax, edx
mov edx, dword [ecx + 0xc]
lea eax, [eax + eax*2]
shl eax, 5
add eax, edx
cmp word [eax + 0x3c], 0
je 0x4a435e
cmp word [eax + 0x44], 0
je 0x4a428d
fld dword [eax + 0x54]
fadd dword [eax + 0x50]
fstp dword [eax + 0x50]
mov ebx, dword [ecx + 0x14]
mov edx, dword [ecx + 0xc]
mov eax, edi
sub eax, ebx
lea eax, [eax + eax*2]
shl eax, 5
add edx, eax
fld dword [edx + 0x50]
fcomp dword [edx + 0x48]
fnstsw ax
test ah, 0x41
jne 0x4a41aa
mov dword [edx + 0x50], 0xbecccccd
mov ebx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov eax, edi
mov dx, word [esi + 0x1c]
sub eax, ebx
movsx edx, dx
lea eax, [eax + eax*2]
shl eax, 5
add eax, ecx
mov ecx, dword [0x538c1c]
mov ebx, dword [ecx]
lea ecx, [ebp - 0x24]
fld dword [eax + 0x50]
fadd dword [0x4013c0]
push ecx
push 0x3f800000
movsx ecx, word [esi + 0x1e]
push ecx
push edx
movsx ecx, word [eax + 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
mov ecx, dword [0x539844]
mov dx, ax
mov ax, word [esi + 0x1c]
imul edx, eax
fld dword [esi + 0x10]
fisub dword [ebp - 0x18]
mov eax, edi
sub eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
movsx edx, dx
lea eax, [eax + eax*2]
shl eax, 5
mov eax, dword [eax + ecx + 8]
movsx ecx, word [esi + 0x2a]
mov dword [ebp - 0x44], ecx
sub eax, edx
fild dword [ebp - 0x44]
push eax
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0xc]
movsx edx, word [esi + 0x24]
fisub dword [ebp - 0x20]
mov dword [ebp - 0x48], edx
push eax
fild dword [ebp - 0x48]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov ecx, dword [0x539844]
push eax
mov eax, edi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*2]
shl eax, 5
mov edx, dword [eax + ecx + 4]
mov eax, dword [0x538c1c]
push edx
push eax
call dword [ebx + 0x78]
test eax, eax
fnclex
jge 0x4a4287
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [0x539844]
mov ebx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov eax, edi
mov dx, word [esi + 0x1c]
sub eax, ebx
movsx edx, dx
lea eax, [eax + eax*2]
shl eax, 5
add eax, ecx
mov ecx, dword [0x538c1c]
mov ebx, dword [ecx]
lea ecx, [ebp - 0x24]
fld dword [eax + 0x28]
fadd dword [0x4013c0]
push ecx
push 0x3f800000
movsx ecx, word [esi + 0x1e]
push ecx
push edx
movsx ecx, word [eax + 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
mov ecx, dword [0x539844]
mov dx, ax
mov ax, word [esi + 0x1c]
imul edx, eax
fld dword [esi + 0x10]
fisub dword [ebp - 0x18]
mov eax, edi
sub eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
movsx edx, dx
lea eax, [eax + eax*2]
shl eax, 5
mov eax, dword [eax + ecx + 8]
movsx ecx, word [esi + 0x2a]
mov dword [ebp - 0x4c], ecx
sub eax, edx
fild dword [ebp - 0x4c]
push eax
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0xc]
movsx edx, word [esi + 0x24]
fisub dword [ebp - 0x20]
mov dword [ebp - 0x50], edx
push eax
fild dword [ebp - 0x50]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov ecx, dword [0x539844]
push eax
mov eax, edi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*2]
shl eax, 5
mov edx, dword [eax + ecx + 4]
mov eax, dword [0x538c1c]
push edx
push eax
call dword [ebx + 0x78]
test eax, eax
fnclex
jge 0x4a4516
jmp 0x4a4501
cmp word [eax + 0x44], 0
je 0x4a445a
fld dword [eax + 0x54]
fadd dword [eax + 0x50]
fstp dword [eax + 0x50]
mov edx, dword [ecx + 0x14]
mov eax, edi
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 5
add edx, eax
fld dword [edx + 0x50]
fcomp dword [edx + 0x48]
fnstsw ax
test ah, 0x41
jne 0x4a4398
mov dword [edx + 0x50], 0xbecccccd
mov ebx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov eax, edi
mov dx, word [esi + 0x1c]
sub eax, ebx
movsx edx, dx
lea eax, [eax + eax*2]
shl eax, 5
add eax, ecx
mov ecx, dword [0x538c1c]
mov ebx, dword [ecx]
lea ecx, [ebp - 0x24]
push ecx
push 0x3f800000
movsx ecx, word [esi + 0x1e]
fld dword [eax + 0x50]
push ecx
push edx
movsx ecx, word [eax + 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
fld dword [esi + 0x10]
movsx ecx, word [esi + 0x2a]
fisub dword [ebp - 0x18]
mov dx, ax
mov ax, word [esi + 0x1c]
mov dword [ebp - 0x54], ecx
imul edx, eax
fild dword [ebp - 0x54]
movsx eax, dx
fsubp st(1)
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0xc]
movsx edx, word [esi + 0x22]
fisub dword [ebp - 0x20]
mov dword [ebp - 0x58], edx
push eax
fild dword [ebp - 0x58]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov ecx, dword [0x539844]
push eax
mov eax, edi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*2]
shl eax, 5
mov edx, dword [eax + ecx]
mov eax, dword [0x538c1c]
push edx
push eax
call dword [ebx + 0x78]
test eax, eax
fnclex
jge 0x4a4454
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [0x539844]
mov ebx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov eax, edi
mov dx, word [esi + 0x1c]
sub eax, ebx
movsx edx, dx
lea eax, [eax + eax*2]
shl eax, 5
add eax, ecx
mov ecx, dword [0x538c1c]
mov ebx, dword [ecx]
lea ecx, [ebp - 0x24]
push ecx
push 0x3f800000
movsx ecx, word [esi + 0x1e]
fld dword [eax + 0x28]
push ecx
push edx
movsx ecx, word [eax + 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
fld dword [esi + 0x10]
movsx ecx, word [esi + 0x2a]
fisub dword [ebp - 0x18]
mov dx, ax
mov ax, word [esi + 0x1c]
mov dword [ebp - 0x5c], ecx
imul edx, eax
fild dword [ebp - 0x5c]
movsx eax, dx
fsubp st(1)
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0xc]
movsx edx, word [esi + 0x22]
fisub dword [ebp - 0x20]
mov dword [ebp - 0x60], edx
push eax
fild dword [ebp - 0x60]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov ecx, dword [0x539844]
push eax
mov eax, edi
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
sub eax, edx
lea eax, [eax + eax*2]
shl eax, 5
mov edx, dword [eax + ecx]
mov eax, dword [0x538c1c]
push edx
push eax
call dword [ebx + 0x78]
test eax, eax
fnclex
jge 0x4a4516
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
push edi
call fcn.004a3b00
mov eax, dword [0x539844]
mov ecx, dword [eax + 0x14]
lea edx, [eax + 0x14]
lea ebx, [eax + 0xc]
mov eax, edi
sub eax, ecx
mov ecx, dword [ebx]
lea eax, [eax + eax*2]
shl eax, 5
fld dword [eax + ecx + 0x2c]
fsub dword [0x538b58]
lea eax, [eax + ecx + 0x2c]
fstp dword [eax]
mov ecx, dword [edx]
mov eax, edi
sub eax, ecx
mov ecx, dword [ebx]
lea eax, [eax + eax*2]
shl eax, 5
add ecx, eax
fld dword [ecx + 0x2c]
fcomp dword [0x4013c0]
fnstsw ax
test ah, 1
je 0x4a459c
fld dword [ecx + 0x28]
fcomp dword [0x4014d8]
fnstsw ax
test ah, 0x41
je 0x4a459c
mov byte [ecx + 0x18], 0
mov ecx, dword [edx]
mov eax, edi
sub eax, ecx
mov ecx, dword [ebx]
lea eax, [eax + eax*2]
shl eax, 5
add eax, ecx
cmp word [eax + 0x34], 0
je 0x4a459c
mov cx, word [eax + 0x3c]
not cx
mov word [eax + 0x3c], cx
movsx eax, word [esi + 0x28]
fild dword [0x538ae4]
fld dword [esi + 0xc]
fisub dword [ebp - 0x20]
mov dword [ebp - 0x64], eax
fisub dword [ebp - 0x64]
fcompp
fnstsw ax
test ah, 1
je 0x4a4693
fild dword [0x538ae4]
fld dword [esi + 0xc]
fisub dword [ebp - 0x20]
fiadd dword [ebp - 0x64]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4a4693
movsx ecx, word [esi + 0x2a]
fild dword [0x538ae8]
fld dword [esi + 0x10]
fisub dword [ebp - 0x18]
mov dword [ebp - 0x68], ecx
fisub dword [ebp - 0x68]
fcompp
fnstsw ax
test ah, 1
je 0x4a4693
fild dword [0x538ae8]
fld dword [esi + 0x10]
movsx eax, word [esi + 0x1e]
fisub dword [ebp - 0x18]
mov dword [ebp - 0x6c], eax
fild dword [ebp - 0x6c]
faddp st(1)
fisub dword [ebp - 0x68]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4a4693
movsx ecx, word [0x53a72c]
cmp ecx, edi
je 0x4a4640
fld dword [0x53a730]
fcomp dword [0x401648]
fnstsw ax
test ah, 1
je 0x4a4693
mov ecx, dword [edx]
mov eax, edi
sub eax, ecx
mov word [0x53a72e], di
lea edx, [eax + eax*2]
mov eax, dword [ebx]
shl edx, 5
movsx ecx, word [edx + eax + 0x42]
mov eax, dword [esi + 4]
mov dx, word [esi + 8]
push eax
push 0
mov dword [0x538c58], ecx
mov word [0x538a72], dx
call dword [sym.imp.MSVBVM60.DLL___vbaStrCmp]
test eax, eax
je 0x4a4693
mov word [0x53a72c], di
mov dword [0x53a730], 0x40400000
mov dword [ebp - 0x1c], 0xffffffff
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov ecx, dword [0x539844]
xor edx, edx
mov eax, 1
add edi, eax
jmp 0x4a40c0
cmp word [ebp - 0x1c], dx
je 0x4a46e8
fld dword [0x538c40]
fcomp dword [0x403144]
fnstsw ax
test ah, 0x41
jne 0x4a46de
fld dword [0x538c40]
fsub dword [0x538b68]
fstp dword [0x538c40]
jmp 0x4a46e8
mov dword [0x538c40], 0x3f333333
fld dword [0x538c40]
fcomp dword [0x4013c0]
fnstsw ax
test ah, 1
je 0x4a4704
mov word [0x538c3c], 0xffff
wait
push 0x4a4715
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
ret