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

Disassembly:
sub esp, 0x84
mov eax, dword [0x1013567c]
xor eax, esp
mov dword [esp + 0x80], eax
push ebp
mov ebp, dword [esp + 0x90]
push esi
push 0x140
mov dword [esp + 0x34], ebp
call fcn.101174f0
mov esi, eax
add esp, 4
test esi, esi
jne 0x100485ce
mov eax, 0xfffffc0d
jmp 0x10048812
push 0x140
push 0
push esi
call fcn.10117460
add esp, 0xc
mov dword [esi], 0xffffffff
cmp dword [esp + 0xa0], 0
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x18], 0xffffffff
mov dword [esi + 0x14], 0xffffffff
mov dword [ebp*4 + 0x10139180], esi
je 0x10048629
or dword [esi + 0xe4], 0x4000
cmp dword [esp + 0x9c], 0xffff
je 0x1004863d
or dword [esi + 0xe4], 0x20
push edi
mov edi, dword [esp + 0x94]
lea eax, [esp + 0x2c]
push 8
push 4
push eax
push ebp
push edi
call fcn.1003b6e0
cmp eax, 0xfffffc17
je 0x10048c60
test eax, eax
js 0x10048811
mov eax, dword [esp + 0x2c]
cmp eax, 0x30000
jb 0x10048c60
cmp eax, 0x40000
jae 0x10048692
mov eax, dword [esi + 0xe4]
or eax, 0x80000
and eax, 0xffffffdf
mov dword [esi + 0xe4], eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x18]
push eax
push 0x10002450
push 0x1000243c
push ebp
push edi
call fcn.10046ee0
test eax, eax
js 0x10048811
cmp dword [esp + 0x14], 0
je 0x10048c40
or dword [esi + 0xe4], 1
lea eax, [esp + 0x14]
push eax
push 0x10002450
push 0x1000243c
push ebp
push edi
call fcn.10046ca0
test eax, eax
js 0x10048811
cmp dword [esp + 0x14], 0
je 0x100486f6
or dword [esi + 0xe4], 0x20000
push ebp
push edi
call fcn.10048f50
test eax, eax
js 0x10048811
push 0x80400000
push 0x100048f4
lea eax, [esp + 0x14]
push eax
push ebp
push edi
call fcn.1003b890
test eax, eax
js 0x10048811
push ebx
push 0
push 0x18
lea eax, [esp + 0x48]
push eax
push 0x10004fd4
push dword [esp + 0x20]
push edi
call fcn.1003c4a0
mov ebx, eax
test ebx, ebx
js 0x10048800
push 0
push Ordinal_2
push dword [esp + 0x18]
push edi
call fcn.1003c7f0
mov ebx, eax
test ebx, ebx
js 0x10048800
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 0x10
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x58]
push dword [esp + 0x28]
push edi
call fcn.1003cb80
mov ebx, eax
cmp ebx, 0x3ec
jne 0x10048794
xorps xmm0, xmm0
movdqu xmmword [esp + 0x68], xmm0
jmp 0x10048798
test ebx, ebx
js 0x10048800
push 0
push 0x18
lea eax, [esp + 0x48]
push eax
push 0x1000501c
push dword [esp + 0x20]
push edi
call fcn.1003c4a0
mov ebx, eax
test ebx, ebx
js 0x10048800
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 2
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x58]
push dword [esp + 0x28]
push edi
call fcn.1003cb80
mov ebx, eax
cmp ebx, 0x3ec
jne 0x100487e7
xor eax, eax
mov word [esp + 0x24], ax
jmp 0x100487f0
test ebx, ebx
js 0x10048800
mov ax, word [esp + 0x24]
cmp ax, 0x54
jne 0x10048800
or dword [esi + 0xe4], 0x1080
push dword [esp + 0x10]
push edi
call fcn.1003bde0
test ebx, ebx
jns 0x1004882b
mov eax, ebx
pop ebx
pop edi
mov ecx, dword [esp + 0x88]
pop esi
pop ebp
xor ecx, esp
call fcn.1011720d
add esp, 0x84
ret 0x14
push 0
push 0
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x28]
push eax
push 0x10
lea eax, [esp + 0x6c]
push eax
push 0x10004c90
push 0
push 0x10002450
push 0x1000243c
push ebp
push edi
call fcn.1002cb90
test eax, eax
js 0x10048810
movdqu xmm0, xmmword [esp + 0x58]
mov eax, dword [esi + 0xc]
push 0x10004c50
push eax
movdqu xmmword [esi + 0xd4], xmm0
push edi
mov dword [esp + 0x1c], eax
call fcn.1003cf10
test eax, eax
js 0x10048810
push 1
push 0x10
lea eax, [esp + 0x60]
push eax
push dword [esp + 0x1c]
push edi
call fcn.1003c740
test eax, eax
js 0x10048810
push 1
push dword [esp + 0x14]
push edi
call fcn.1003cd50
test eax, eax
js 0x10048810
push 0
push 0x18
lea eax, [esp + 0x48]
push eax
push 0x100050e0
push dword [esp + 0x20]
push edi
call fcn.1003c4a0
test eax, eax
js 0x10048810
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x58]
push dword [esp + 0x28]
push edi
call fcn.1003cb80
mov edx, eax
cmp edx, 0x3ec
jne 0x10048900
xor ecx, ecx
mov dword [esp + 0x20], ecx
jmp 0x10048904
mov ecx, dword [esp + 0x20]
cmp dword [esp + 0x1c], 2
jne 0x10048912
movsx eax, cx
mov dword [esp + 0x20], eax
test edx, edx
jns 0x1004891d
mov eax, edx
jmp 0x10048810
push 6
push 4
lea eax, [esp + 0x3c]
push eax
push ebp
push edi
call fcn.1003b6e0
test eax, eax
js 0x10048810
xor ebx, ebx
test byte [esp + 0x34], 1
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
jne 0x1004895e
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
push ebp
push edi
call fcn.10047530
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x28], ebx
test eax, eax
js 0x1004896c
test ebx, ebx
jne 0x1004896c
mov eax, dword [esp + 0x20]
jmp 0x10048988
mov eax, dword [esp + 0xa0]
and eax, sym.msjet40.dll_Ordinal_60
mov dword [esp + 0x28], 1
neg eax
sbb eax, eax
and eax, dword [esp + 0x20]
push 0
push 0x18
mov dword [esi + 0xe8], eax
lea eax, [esp + 0x80]
push eax
push 0x100050cc
push dword [esp + 0x20]
push edi
call fcn.1003c4a0
test eax, eax
js 0x10048810
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 2
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x90]
push dword [esp + 0x28]
push edi
call fcn.1003cb80
cmp eax, 0x3ec
jne 0x100489e2
xor eax, eax
mov word [esp + 0x14], ax
jmp 0x100489ef
test eax, eax
js 0x10048810
mov ax, word [esp + 0x14]
cmp ax, word [0x10005e64]
jne 0x10048a02
or dword [esi + 0xe4], 0x80
cmp dword [esp + 0x30], 0x40000
jb 0x10048a64
push 0
push 0x18
lea eax, [esp + 0x48]
push eax
push 0x10005620
push dword [esp + 0x20]
push edi
call fcn.1003c4a0
test eax, eax
js 0x10048810
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 4
lea ebx, [esi + 0xcc]
push ebx
push dword [esp + 0x58]
push dword [esp + 0x28]
push edi
call fcn.1003cb80
cmp eax, 0x3ec
jne 0x10048a5b
mov dword [ebx], 0
jmp 0x10048a6a
test eax, eax
jns 0x10048a70
jmp 0x10048810
lea ebx, [esi + 0xcc]
mov dword [ebx], 0x1000
push 0
push 0x18
lea eax, [esp + 0x48]
push eax
push 0x100050b4
push dword [esp + 0x20]
push edi
call fcn.1003c4a0
test eax, eax
js 0x10048810
push 0
push 0
lea eax, [esp + 0x24]
push eax
push 4
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x58]
push dword [esp + 0x28]
push edi
call fcn.1003cb80
mov ebp, eax
cmp ebp, 0x3ec
jne 0x10048ac0
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x10048acc
test ebp, ebp
js 0x10048c39
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10048af7
cmp eax, 0xb
je 0x10048af0
or dword [esi + 0xe4], 0x80
cmp dword [esp + 0x2c], 0xf
jbe 0x10048af7
mov eax, 0xfffff88d
jmp 0x10048810
or dword [esi + 0xe4], 0x40
lea ecx, [esp + 0x58]
mov dword [esp + 0x18], 0xc
lea edx, [esp + 0x68]
jmp 0x10048b10
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10048c39
add ecx, 4
add edx, 4
sub dword [esp + 0x18], 4
jae 0x10048b10
test dword [esi + 0xe4], 0x80000
jne 0x10048c39
mov ax, word [esp + 0x14]
cmp ax, word [0x10005e64]
je 0x10048b4e
test byte [ebx], 4
je 0x10048be7
mov ax, word [0x10005fbc]
push 2
push dword [esp + 0x14]
mov word [esp + 0x1c], ax
push edi
call fcn.1003c9e0
test eax, eax
js 0x10048810
push 0
push 0
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x8c]
push dword [esp + 0x24]
push edi
call fcn.1003cda0
test eax, eax
js 0x10048810
and dword [ebx], 0xfffffffb
lea eax, [esp + 0x40]
push 0
push 0x18
push eax
push 0x10005620
push dword [esp + 0x20]
push edi
call fcn.1003c4a0
test eax, eax
js 0x10048810
push 0
push 0
push 4
push ebx
push dword [esp + 0x54]
push dword [esp + 0x24]
push edi
call fcn.1003cda0
test eax, eax
js 0x10048810
push 0
push 0
push 0
push dword [esp + 0x1c]
push edi
call fcn.1003cfb0
mov ebp, eax
test ebp, ebp
js 0x10048c39
cmp dword [esp + 0x28], 0
jne 0x10048c0c
mov eax, dword [esi + 0xe4]
or eax, 2
and eax, 0xffffff7f
and dword [ebx], 0xfffffffb
mov dword [esi + 0xe4], eax
mov eax, ebp
jmp 0x10048810
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx*4 + 0x10139180]
test dword [eax + 0xcc], 0x10000
je 0x10048c39
test dword [esp + 0xa0], sym.msjet40.dll_Ordinal_60
jne 0x10048c39
push ecx
push edi
call fcn.1018dd46
mov ebp, eax
mov eax, ebp
jmp 0x10048810
cmp dword [esp + 0x24], 0
je 0x10048c60
or dword [esi + 0xe4], 0x8000
push ebp
push edi
call fcn.10048f50
test eax, eax
js 0x10048811
xor eax, eax
jmp 0x10048811