Function at 0x4fb420
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, 0xa0
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4046a0
mov ecx, dword [0x538a1c]
mov edx, dword [0x538a20]
xor eax, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], eax
mov dword [0x538c58], eax
movsx eax, word [0x53984a]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x40], eax
mov edi, 1
cmp edi, dword [ebp - 0x40]
jg 0x4fbe4c
mov ecx, dword [0x539844]
mov eax, edi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
mov ecx, dword [0x539840]
shl edx, 5
push ecx
movsx esi, word [edx + eax + 0x40]
lea edx, [ebp - 0x30]
mov dword [ebp - 0x18], esi
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryLock]
mov ecx, dword [ebp - 0x30]
mov eax, esi
sub eax, dword [ecx + 0x14]
mov edx, eax
shl edx, 5
add edx, eax
mov eax, dword [ecx + 0xc]
cmp word [eax + edx*8 + 0x18], 0
lea esi, [eax + edx*8 + 0x10]
je 0x4fb9a5
mov ecx, dword [0x539844]
mov eax, edi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 5
mov bl, byte [edx + eax + 0x18]
test bl, bl
jne 0x4fb4fd
push edi
call fcn.004a36a0
mov ecx, dword [0x539844]
cmp word [esi + 0x18], 0
jle 0x4fb56f
fld dword [esi + 0x10]
fisub dword [ebp - 0x1c]
mov ecx, dword [0x538c1c]
push 0
push 5
mov ebx, dword [ecx]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0x10]
fisub dword [ebp - 0x1c]
movsx edx, word [esi + 0x16]
mov ecx, dword [ebp - 0x20]
push eax
sub edx, ecx
push edx
fsub qword [0x4015c8]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov edx, dword [ebp - 0x20]
mov ecx, dword [0x538c1c]
push eax
movsx eax, word [esi + 0x14]
sub eax, edx
push eax
push ecx
call dword [ebx + 0x54]
test eax, eax
fnclex
jge 0x4fb569
mov edx, dword [0x538c1c]
push 0x54
push 0x420690
push edx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
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 0x4fb76a
cmp word [eax + 0x44], 0
je 0x4fb6a1
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 0x4fb5c6
mov dword [edx + 0x50], 0xbecccccd
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
mov eax, edi
sub eax, edx
mov edx, dword [0x538c1c]
mov ebx, dword [edx]
lea eax, [eax + eax*2]
movsx edx, word [esi + 0x1e]
shl eax, 5
add eax, ecx
lea ecx, [ebp - 0x24]
push ecx
push 0x3f800000
movsx ecx, word [esi + 0x1c]
fld dword [eax + 0x50]
fadd dword [0x4013c0]
push edx
push ecx
movsx edx, word [eax + 0x4c]
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
imul ax, word [esi + 0x1c]
fld dword [esi + 0x10]
fisub dword [ebp - 0x1c]
mov ecx, dword [0x539844]
movsx edx, ax
mov eax, edi
sub eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
lea eax, [eax + eax*2]
shl eax, 5
mov eax, dword [eax + ecx + 8]
movsx ecx, word [esi + 0x2a]
mov dword [ebp - 0x48], ecx
sub eax, edx
fild dword [ebp - 0x48]
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 - 0x4c], edx
push eax
fild dword [ebp - 0x4c]
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 0x4fb69b
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [0x539844]
mov edx, dword [ecx + 0x14]
mov eax, edi
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
mov ecx, dword [0x538c1c]
shl edx, 5
mov ebx, dword [ecx]
add eax, edx
movsx ecx, word [esi + 0x1e]
fld dword [eax + 0x28]
fadd dword [0x4013c0]
lea edx, [ebp - 0x24]
push edx
push 0x3f800000
movsx edx, word [esi + 0x1c]
push ecx
push edx
movsx ecx, word [eax + 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
imul ax, word [esi + 0x1c]
fld dword [esi + 0x10]
fisub dword [ebp - 0x1c]
mov ecx, dword [0x539844]
movsx edx, ax
mov eax, edi
sub eax, dword [ecx + 0x14]
mov ecx, dword [ecx + 0xc]
lea eax, [eax + eax*2]
shl eax, 5
mov eax, dword [eax + ecx + 8]
movsx ecx, word [esi + 0x2a]
mov dword [ebp - 0x50], ecx
sub eax, edx
fild dword [ebp - 0x50]
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 - 0x54], edx
push eax
fild dword [ebp - 0x54]
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 0x4fb910
jmp 0x4fb8fb
cmp word [eax + 0x44], 0
je 0x4fb85d
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 0x4fb7a4
mov dword [edx + 0x50], 0xbecccccd
mov edx, dword [ecx + 0x14]
mov eax, edi
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
mov ecx, dword [0x538c1c]
shl edx, 5
mov ebx, dword [ecx]
add eax, edx
movsx ecx, word [esi + 0x1e]
fld dword [eax + 0x50]
lea edx, [ebp - 0x24]
push edx
push 0x3f800000
movsx edx, word [esi + 0x1c]
push ecx
push edx
movsx ecx, word [eax + 0x4c]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
imul ax, word [esi + 0x1c]
fld dword [esi + 0x10]
fisub dword [ebp - 0x1c]
movsx edx, ax
movsx eax, word [esi + 0x2a]
mov dword [ebp - 0x58], eax
push edx
fild dword [ebp - 0x58]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0xc]
movsx ecx, word [esi + 0x22]
fisub dword [ebp - 0x20]
mov dword [ebp - 0x5c], ecx
push eax
fild dword [ebp - 0x5c]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov ecx, dword [0x539844]
push eax
mov eax, edi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 5
mov ecx, dword [edx + eax]
mov edx, dword [0x538c1c]
push ecx
push edx
call dword [ebx + 0x78]
test eax, eax
fnclex
jge 0x4fb857
mov ecx, dword [0x538c1c]
push 0x78
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
mov ecx, dword [0x539844]
mov edx, dword [ecx + 0x14]
mov eax, edi
sub eax, edx
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
mov ecx, dword [0x538c1c]
shl edx, 5
mov ebx, dword [ecx]
add eax, edx
movsx ecx, word [esi + 0x1e]
fld dword [eax + 0x28]
lea edx, [ebp - 0x24]
push edx
push 0x3f800000
movsx edx, word [esi + 0x1c]
push ecx
push edx
movsx ecx, word [eax + 0x24]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
imul ax, word [esi + 0x1c]
fld dword [esi + 0x10]
fisub dword [ebp - 0x1c]
movsx edx, ax
movsx eax, word [esi + 0x2a]
mov dword [ebp - 0x60], eax
push edx
fild dword [ebp - 0x60]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0xc]
movsx ecx, word [esi + 0x22]
fisub dword [ebp - 0x20]
mov dword [ebp - 0x64], ecx
push eax
fild dword [ebp - 0x64]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
mov ecx, dword [0x539844]
push eax
mov eax, edi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 5
mov ecx, dword [edx + eax]
mov edx, dword [0x538c1c]
push ecx
push edx
call dword [ebx + 0x78]
test eax, eax
fnclex
jge 0x4fb910
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 ecx, dword [0x539844]
mov eax, edi
sub eax, dword [ecx + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [ecx + 0xc]
shl edx, 5
fld dword [edx + eax + 0x2c]
fsub dword [0x538b58]
lea eax, [edx + eax + 0x2c]
fstp dword [eax]
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 + 0x2c]
fcomp dword [0x4013c0]
fnstsw ax
test ah, 1
je 0x4fba2d
fld dword [edx + 0x28]
fcomp dword [0x4014d8]
fnstsw ax
test ah, 0x41
je 0x4fba2d
mov byte [edx + 0x18], 0
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 eax, edx
cmp word [eax + 0x34], 0
je 0x4fba2d
mov cx, word [eax + 0x3c]
not cx
mov word [eax + 0x3c], cx
jmp 0x4fba2d
fld dword [esi + 0x10]
fisub dword [ebp - 0x1c]
mov edx, dword [0x538c1c]
push 0
push 4
mov ebx, dword [edx]
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0xc]
fisub dword [ebp - 0x20]
push eax
movsx eax, word [esi + 0x28]
mov dword [ebp - 0x68], eax
fild dword [ebp - 0x68]
faddp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0x10]
movsx ecx, word [esi + 0x2a]
fisub dword [ebp - 0x1c]
mov dword [ebp - 0x6c], ecx
push eax
fild dword [ebp - 0x6c]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0xc]
movsx edx, word [esi + 0x28]
fisub dword [ebp - 0x20]
mov dword [ebp - 0x70], edx
push eax
fild dword [ebp - 0x70]
fsubp st(1)
call dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
push eax
mov eax, dword [0x538c1c]
push eax
call dword [ebx + 0x54]
test eax, eax
fnclex
jge 0x4fba2d
mov ecx, dword [0x538c1c]
push 0x54
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
cmp word [0x53a13a], 3
jge 0x4fbc3c
cmp word [0x53a152], 0
jne 0x4fbc3c
cmp word [0x538a5c], 0
je 0x4fba9f
cmp word [esi + 8], 0
jne 0x4fba9f
movsx edx, word [0x53a13c]
mov eax, dword [ebp - 0x18]
cmp eax, edx
jne 0x4fba9f
cmp word [0x538c14], 2
jne 0x4fba9f
cmp word [0x53a13e], 0
je 0x4fba9f
mov cx, word [0x538ae4]
mov dx, word [0x538ae8]
neg eax
mov word [esi + 0x14], cx
mov word [esi + 0x16], dx
mov word [0x53a152], ax
jmp 0x4fbc3c
movsx eax, word [esi + 0x28]
fild dword [0x538ae4]
fld dword [esi + 0xc]
fisub dword [ebp - 0x20]
mov dword [ebp - 0x74], eax
fisub dword [ebp - 0x74]
fcompp
fnstsw ax
test ah, 1
je 0x4fbc3c
fild dword [0x538ae4]
fld dword [esi + 0xc]
fisub dword [ebp - 0x20]
fiadd dword [ebp - 0x74]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4fbc3c
movsx ecx, word [esi + 0x2a]
fild dword [0x538ae8]
fld dword [esi + 0x10]
fisub dword [ebp - 0x1c]
mov dword [ebp - 0x78], ecx
fisub dword [ebp - 0x78]
fcompp
fnstsw ax
test ah, 1
je 0x4fbc3c
fild dword [0x538ae8]
fld dword [esi + 0x10]
movsx edx, word [esi + 0x1e]
fisub dword [ebp - 0x1c]
mov dword [ebp - 0x7c], edx
fild dword [ebp - 0x7c]
faddp st(1)
fisub dword [ebp - 0x78]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4fbc3c
push 0
push 0
call fcn.00439c50
test ax, ax
je 0x4fbc3c
mov dword [ebp - 0x28], 0x3f800000
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFpI4]
fld dword [esi + 0x10]
movsx ecx, word [esi + 0x1e]
fisub dword [ebp - 0x1c]
movsx edx, word [esi + 0x2a]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], edx
fild dword [ebp - 0x80]
lea eax, [ebp - 0x28]
faddp st(1)
fild dword [ebp - 0x84]
push eax
push 0x9b
fsubp st(1)
fadd qword [0x402430]
call ebx
fld dword [esi + 0xc]
fisub dword [ebp - 0x20]
push eax
call ebx
push eax
lea eax, [esi + 4]
push eax
call fcn.0043bd50
cmp word [0x538c14], 1
jne 0x4fbc3c
cmp word [0x538a5c], 0
je 0x4fbc3c
mov eax, dword [ebp - 0x18]
cmp word [0x53a13e], 0
mov word [0x53a142], di
mov word [0x53a13c], ax
je 0x4fbc16
mov ecx, dword [0x538a1c]
mov edx, dword [0x538ae4]
add edx, ecx
mov word [0x53a152], ax
mov dword [ebp - 0x88], edx
fild dword [ebp - 0x88]
fsub dword [esi + 0xc]
call ebx
mov ecx, dword [0x538ae8]
mov dword [0x53a154], eax
mov eax, dword [0x538a20]
add ecx, eax
mov dword [ebp - 0x8c], ecx
fild dword [ebp - 0x8c]
fsub dword [esi + 0x10]
call ebx
mov dword [0x53a158], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [0x539840]
sub eax, dword [ecx + 0x14]
mov edx, eax
shl edx, 5
add edx, eax
mov eax, dword [ecx + 0xc]
cmp word [eax + edx*8 + 8], 0
jge 0x4fbc35
push 0xffffffffffffffff
jmp 0x4fbc37
push 1
call fcn.004fb300
mov cx, word [0x53a152]
movsx eax, cx
cdq
xor eax, edx
sub eax, edx
movsx edx, ax
cmp edx, dword [ebp - 0x18]
jne 0x4fbe36
movsx eax, word [0x538c14]
sub eax, 0
je 0x4fbd42
dec eax
je 0x4fbcbc
dec eax
jne 0x4fbe36
mov edx, dword [0x538ae8]
push 0
push 3
push edx
mov edx, dword [0x538ae4]
mov eax, dword [0x538c1c]
push edx
movsx edx, word [esi + 0x16]
mov ecx, dword [eax]
push edx
movsx edx, word [esi + 0x14]
push edx
push eax
call dword [ecx + 0x54]
test eax, eax
fnclex
jge 0x4fbe36
mov ecx, dword [0x538c1c]
push 0x54
push 0x420690
push ecx
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaHresultCheckObj]
jmp 0x4fbe36
mov eax, dword [0x538ae4]
mov ecx, dword [0x53a154]
mov ebx, dword [0x538a1c]
mov edx, dword [0x53a158]
sub eax, ecx
mov ecx, dword [0x538a20]
add eax, ebx
mov ebx, dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
mov dword [ebp - 0x90], eax
mov eax, dword [0x538ae8]
fild dword [ebp - 0x90]
sub eax, edx
movsx edx, word [esi + 0x18]
fst dword [esi + 0xc]
add eax, ecx
mov dword [ebp - 0x98], edx
mov dword [ebp - 0x94], eax
fild dword [ebp - 0x94]
fstp dword [esi + 0x10]
fild dword [ebp - 0x98]
fsubr st(1)
call ebx
mov word [esi + 0x14], ax
movsx eax, word [esi + 0x18]
fstp st(0)
mov dword [ebp - 0x9c], eax
fild dword [ebp - 0x9c]
fadd dword [esi + 0xc]
call ebx
mov word [esi + 0x16], ax
jmp 0x4fbe36
test cx, cx
jge 0x4fbe2d
movsx ebx, word [esi + 0x14]
mov eax, dword [0x538ae4]
sub eax, ebx
cdq
mov ecx, eax
mov eax, dword [0x538ae8]
xor ecx, edx
sub ecx, edx
movsx edx, word [esi + 0x16]
mov word [esi + 0x1c], cx
sub eax, edx
movsx ecx, cx
mov dword [ebp - 0xa0], ecx
fild dword [ebp - 0xa0]
cdq
fmul qword [0x4014a0]
xor eax, edx
sub eax, edx
mov word [esi + 0x1e], ax
mov word [esi + 0x2a], ax
call dword [sym.imp.MSVBVM60.DLL___vbaFpI2]
mov ecx, dword [0x538ae4]
mov dx, word [esi + 0x1c]
cmp ecx, ebx
mov word [esi + 0x24], ax
mov word [esi + 0x22], ax
mov word [esi + 0x28], ax
mov word [esi + 0x26], dx
jle 0x4fbdcd
mov ecx, dword [0x538a1c]
movsx eax, ax
add eax, ebx
add eax, ecx
mov dword [ebp - 0xa4], eax
fild dword [ebp - 0xa4]
jmp 0x4fbde5
movsx edx, ax
mov eax, dword [0x538a1c]
add edx, ecx
add edx, eax
mov dword [ebp - 0xa8], edx
fild dword [ebp - 0xa8]
movsx eax, word [esi + 0x16]
fstp dword [esi + 0xc]
mov ecx, dword [0x538ae8]
cmp ecx, eax
jle 0x4fbe11
movsx ecx, word [esi + 0x2a]
add ecx, eax
mov eax, dword [0x538a20]
add ecx, eax
mov dword [ebp - 0xac], ecx
fild dword [ebp - 0xac]
jmp 0x4fbe2a
movsx edx, word [esi + 0x2a]
mov eax, dword [0x538a20]
add edx, ecx
add edx, eax
mov dword [ebp - 0xb0], edx
fild dword [ebp - 0xb0]
fstp dword [esi + 0x10]
mov word [0x53a152], 0
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
mov eax, 1
add edi, eax
jmp 0x4fb47d
wait
push 0x4fbe5d
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaAryUnlock]
ret