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

Disassembly:
push 0xffffffffffffffff
push 0x5d1b3c
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x680f10]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x680f10]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xc4]
push 1
mov ebp, ecx
mov dword [esp + 0x1c], eax
call fcn.004d1ed0
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x20], eax
je 0x4a39cf
mov edx, dword [ebp]
mov eax, dword [edx + 4]
mov ecx, ebp
call eax
mov ecx, ebp
mov esi, eax
call fcn.004d1f90
mov edi, eax
mov eax, esi
sub eax, 3
je 0x4a37fc
sub eax, 1
je 0x4a3727
sub eax, 1
jne 0x4a39cf
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebp
call fcn.005036f0
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esp + 0xbc], 4
je 0x4a371e
mov eax, dword [eax]
cmp eax, ebx
je 0x4a371e
cmp word [eax], bx
je 0x4a371e
push eax
lea ecx, [esp + 0x7c]
call fcn.00413e00
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x78]
push edx
mov byte [esp + 0xc0], 5
call fcn.004a6960
lea ecx, [esp + 0x78]
call fcn.00415050
lea ecx, [esp + 0x14]
jmp 0x4a39ca
mov ecx, ebp
call fcn.005026c0
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x14], eax
jbe 0x4a39cf
lea esp, [esp]
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.005027b0
mov eax, dword [esp + 0x20]
cmp eax, ebx
mov dword [esp + 0xbc], 6
je 0x4a3766
mov edx, dword [eax]
cmp edx, ebx
jne 0x4a376b
mov edx, 0x5f37d8
mov eax, edx
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a3781
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x2c]
call fcn.00414390
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xc0], 7
call fcn.004a6960
cmp dword [esp + 0x3c], 8
jb 0x4a37c5
mov edx, dword [esp + 0x28]
push edx
call fcn.004274fc
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
mov dword [esp + 0xbc], 0xffffffff
call fcn.00401650
add edi, 1
cmp edi, dword [esp + 0x14]
jb 0x4a3740
jmp 0x4a39cf
lea eax, [esp + 0x1c]
push eax
mov ecx, ebp
call fcn.00503830
test edi, 0x2000
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xbc], ebx
je 0x4a38e1
cmp eax, ebx
je 0x4a39c6
mov eax, dword [eax]
cmp eax, ebx
je 0x4a39c6
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
cmp eax, ebx
je 0x4a39c6
mov dword [esp + 0xac], 7
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], bx
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 4]
mov cx, word [edx + 0x3c]
mov byte [esp + 0xbc], 1
mov word [esp + 0x14], cx
mov word [esp + 0x16], bx
jbe 0x4a38ad
mov esi, eax
jmp 0x4a3880
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4a3887
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x9c]
call fcn.004a5cc0
sub esi, 1
jne 0x4a3880
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x94]
push eax
call fcn.004a6960
cmp dword [esp + 0xac], 8
jb 0x4a39c6
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004274fc
add esp, 4
jmp 0x4a39c6
test edi, 0x1000
je 0x4a398e
cmp eax, ebx
je 0x4a39c6
mov edi, dword [eax]
cmp edi, ebx
je 0x4a39c6
movzx eax, word [edi]
xor esi, esi
cmp ax, bx
je 0x4a3923
movzx eax, ax
lea esp, [esp]
cmp ax, 0xd
je 0x4a3923
movzx eax, word [edi + esi*2 + 2]
add esi, 1
cmp ax, bx
jne 0x4a3910
push esi
mov ebp, 7
push edi
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov word [esp + 0x4c], bx
call fcn.00414390
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0xc0], 2
call fcn.004a6960
cmp dword [esp + 0x58], 8
mov byte [esp + 0xbc], bl
jb 0x4a3971
mov eax, dword [esp + 0x44]
push eax
call fcn.004274fc
add esp, 4
mov dword [esp + 0x58], ebp
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
cmp word [edi + esi*2], 0xd
jne 0x4a39c6
lea edi, [edi + esi*2 + 2]
jmp 0x4a38ff
cmp eax, ebx
je 0x4a39c6
mov eax, dword [eax]
cmp eax, ebx
je 0x4a39c6
cmp word [eax], bx
je 0x4a39c6
push eax
lea ecx, [esp + 0x60]
call fcn.00413e00
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xc0], 3
call fcn.004a6960
lea ecx, [esp + 0x5c]
call fcn.00415050
lea ecx, [esp + 0x1c]
call fcn.00401650
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.0044abb9
add esp, 0xac
ret 4