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

Disassembly:
sub esp, 0x18c
push ebx
push ebp
push esi
xor ebx, ebx
lea ecx, [esp + 0x5c]
push edi
mov dword [esp + 0x10], ebx
call fcn.010304f0
mov eax, dword [0x1010935c]
push 0x44
push dword [esp + 0x1c8]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x160]
push eax
call fcn.01073930
mov edi, dword [esp + 0x1c4]
add esp, 0xc
mov esi, dword [esp + 0x1a8]
and edi, 0xfff7ffff
mov dword [esp + 0x158], 0x44
xor ebp, ebp
mov dword [esp + 0x24], edi
mov ecx, dword [0x10109618]
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x10492a1
push 0x100fcb88
push ebp
push 0x100fcb74
push 0x100f7164
push 4
lea ecx, [esp + 0x160]
call fcn.00fb96c0
mov ecx, eax
call fcn.00fbba10
mov ecx, eax
call fcn.00fbb8e0
mov ecx, eax
call fcn.00fbb950
lea ecx, [esp + 0x14c]
call fcn.00fbb6e0
inc ebp
mov dword [esp + 0x5c], ebp
cmp ebp, 5
jg 0x1049ea9
mov eax, dword [esp + 0x1a0]
mov eax, dword [eax + 0x58]
cmp ebp, 4
jne 0x10492ff
mov ecx, dword [0x10109618]
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x10492fa
push 0x100fcbf0
push 0x100f7164
push ebp
lea ecx, [esp + 0xf4]
call fcn.00fb96c0
mov ecx, eax
call fcn.00fbba10
lea ecx, [esp + 0xe8]
call fcn.00fbb6e0
mov eax, 1
push dword [esp + 0x1d0]
lea ecx, [esp + 0xf8]
push eax
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x1d0]
push eax
push edi
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x1d0]
push eax
lea eax, [esp + 0x1d0]
push eax
call fcn.0104f780
lea eax, [esp + 0xf4]
push eax
push esi
push dword [esp + 0x1ac]
call fcn.0104af90
mov ecx, dword [0x10109618]
add esp, 0xc
mov eax, dword [ecx]
push dword [esp + 0x130]
call dword [eax + 0x80]
test eax, eax
jne 0x1049e46
mov ecx, dword [esp + 0x140]
cmp dword [esp + 0x114], eax
je 0x1049712
mov eax, dword [esp + 0x13c]
test eax, eax
je 0x10493bb
push eax
lea ecx, [esp + 0x64]
call fcn.01030530
lea ecx, [esp + 0xf4]
call fcn.0104ffb0
jmp 0x1049250
cmp ecx, 2
jne 0x1049705
push 0
lea ecx, [esp + 0x38]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
call fcn.00fad480
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x34]
push eax
push 0x100fac48
call fcn.01076db0
push dword [esp + 0x3c]
lea eax, [esp + 0xe8]
push eax
call fcn.01076bc0
add esp, 0x10
mov edi, dword [eax]
test edi, edi
jne 0x104942e
push edi
lea ecx, [esp + 0x38]
call fcn.00fad480
mov eax, dword [esp + 0x34]
xor ecx, ecx
mov word [eax], cx
jmp 0x1049471
xor ecx, ecx
xor esi, esi
mov eax, edi
cmp cx, word [edi]
je 0x104944b
lea esp, [esp]
lea eax, [eax + 2]
xor ecx, ecx
inc esi
cmp cx, word [eax]
jne 0x1049440
push esi
lea ecx, [esp + 0x38]
call fcn.00fad480
lea eax, [esi*2 + 2]
push eax
push edi
push dword [esp + 0x3c]
call fcn.0107f910
mov esi, dword [esp + 0x1b4]
add esp, 0xc
mov eax, dword [esp + 0xdc]
test eax, eax
je 0x10494a6
push eax
call fcn.01073820
add esp, 4
mov dword [esp + 0xdc], 0
mov dword [esp + 0xe0], 0
mov dword [esp + 0xe4], 0
push 0
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
call fcn.00fad480
mov eax, dword [esp + 0x50]
xor ecx, ecx
mov word [eax], cx
lea eax, [esp + 0x34]
test esi, esi
jne 0x10495b7
push 0x100eff98
push dword [esp + 0x1a8]
push 0x100fac58
push eax
lea eax, [esp + 0x74]
push eax
call fcn.00fa7920
add esp, 0xc
push eax
lea eax, [esp + 0x94]
push eax
call fcn.00fa7920
add esp, 0xc
push eax
lea eax, [esp + 0xcc]
push eax
call fcn.00fa7920
add esp, 0xc
lea ecx, [esp + 0x50]
push dword [eax]
call fcn.00fa9bc0
mov eax, dword [esp + 0xc4]
test eax, eax
je 0x1049553
push eax
call fcn.01073820
add esp, 4
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc8], esi
mov dword [esp + 0xcc], esi
mov eax, dword [esp + 0x88]
test eax, eax
je 0x1049588
push eax
call fcn.01073820
add esp, 4
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x1049654
push eax
call fcn.01073820
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
jmp 0x1049651
push esi
push 0x100fccac
push eax
lea eax, [esp + 0xdc]
push eax
call fcn.00fa7920
add esp, 0xc
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.00fa7920
add esp, 0xc
lea ecx, [esp + 0x50]
push dword [eax]
call fcn.00fa9bc0
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x104961f
push eax
call fcn.01073820
add esp, 4
mov dword [esp + 0xa0], 0
mov dword [esp + 0xa4], 0
mov dword [esp + 0xa8], 0
mov eax, dword [esp + 0xd0]
test eax, eax
je 0x1049654
push eax
call fcn.01073820
mov dword [esp + 0xd4], 0
mov dword [esp + 0xd8], 0
mov dword [esp + 0xdc], 0
add esp, 4
push dword [esp + 0x1c8]
mov ecx, dword [0x1010935c]
lea eax, [esp + 0x15c]
mov esi, dword [esp + 0x54]
add ecx, 0x116c
push eax
push dword [esp + 0x1c8]
mov eax, dword [esp + 0x30]
push dword [esp + 0x1c8]
or eax, 4
push eax
push dword [esp + 0x1c8]
mov eax, dword [ecx]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push esi
push 0
call dword [eax + 0x24]
call eax
mov ebp, eax
mov dword [esp + 0x30], ebp
test esi, esi
je 0x10496d3
push esi
call fcn.01073820
add esp, 4
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10497f3
push eax
call fcn.01073820
add esp, 4
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
jmp 0x10497f3
mov dword [esp + 0x30], 1
jmp 0x10497fb
mov eax, dword [esp + 0x1cc]
test eax, eax
je 0x104977d
cmp dword [eax], 3
jne 0x104977d
push dword [esp + 0x1c8]
mov ecx, dword [0x1010935c]
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x1c8]
mov eax, edi
add ecx, 0x116c
push dword [esp + 0x1c8]
or eax, 4
push eax
push dword [esp + 0x1c8]
mov eax, dword [ecx]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push esi
push dword [esp + 0x1c8]
call dword [eax + 0x24]
call eax
mov ebp, eax
mov dword [esp + 0x30], ebp
jmp 0x10497f3
push dword [esp + 0x1c8]
mov edi, dword [esp + 0x4c]
push dword [esp + 0x1c8]
mov ecx, dword [0x1010935c]
push dword [esp + 0x1c8]
mov edx, dword [edi + 0x30]
push dword [esp + 0x1c8]
mov eax, dword [ecx + 0x116c]
neg edx
sbb edx, edx
add ecx, 0x116c
and edx, 4
or edx, dword [esp + 0x1c8]
push edx
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push esi
push dword [esp + 0x1c8]
call dword [eax + 0x24]
call eax
cmp dword [edi + 0x30], 0
mov ebp, eax
mov dword [esp + 0x30], ebp
je 0x1049e9b
test ebp, ebp
je 0x1049e33
mov eax, dword [esp + 0x1b8]
shr eax, 2
and eax, 1
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c8]
push dword [eax]
call dword [0x100df260]
push eax
call fcn.010757c0
mov ecx, dword [esp + 0x1c8]
add esp, 8
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x104984a
push ecx
lea eax, [esp + 0x74]
or ebx, 1
push eax
mov dword [esp + 0x18], ebx
call fcn.010773c0
add esp, 8
jmp 0x1049861
lea eax, [esp + 0xb8]
or ebx, 2
push eax
mov dword [esp + 0x14], ebx
call fcn.01076ca0
add esp, 4
mov edi, dword [eax]
xor ecx, ecx
test edi, edi
jne 0x1049895
mov eax, 0x100
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01073830
push edi
mov ebp, eax
call fcn.01073820
add esp, 8
xor eax, eax
mov word [ebp], ax
jmp 0x10498e2
xor esi, esi
mov eax, edi
cmp cx, word [edi]
je 0x10498ab
mov edi, edi
lea eax, [eax + 2]
xor ecx, ecx
inc esi
cmp cx, word [eax]
jne 0x10498a0
xor ecx, ecx
lea eax, [esi + 0x100]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01073830
push 0
mov ebp, eax
call fcn.01073820
lea eax, [esi*2 + 2]
push eax
push edi
push ebp
call fcn.0107f910
add esp, 0x14
test bl, 2
je 0x1049923
mov eax, dword [esp + 0xb8]
and ebx, 0xfffffffd
mov dword [esp + 0x10], ebx
test eax, eax
je 0x1049923
push eax
call fcn.01073820
add esp, 4
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
test bl, 1
je 0x1049958
mov eax, dword [esp + 0x70]
and ebx, 0xfffffffe
mov dword [esp + 0x10], ebx
test eax, eax
je 0x1049958
push eax
call fcn.01073820
add esp, 4
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov ecx, dword [esp + 0x140]
xor esi, esi
mov eax, dword [esp + 0x118]
mov dword [esp + 0x1c], esi
cmp ecx, 1
jne 0x10499d3
push eax
lea eax, [esp + 0x80]
push eax
call fcn.010773c0
lea ecx, [esp + 0x24]
push ecx
push dword [eax]
call fcn.0105b7b0
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0x7c]
sete byte [esp + 0x1b]
test eax, eax
je 0x10499b8
push eax
call fcn.01073820
add esp, 4
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp byte [esp + 0x1b], al
mov ecx, dword [esp + 0x140]
cmovne esi, eax
mov eax, dword [esp + 0x118]
cmp dword [esp + 0x14], 0
mov edi, dword [esp + 0x124]
mov dword [esp + 0x1c], 0
je 0x1049b0d
cmp ecx, 1
jne 0x1049a33
mov ecx, dword [esp + 0x1c4]
or ebx, 4
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x24], edi
push eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], ebx
call fcn.010773c0
mov ecx, dword [esp + 0x148]
add esp, 8
mov dword [esp + 0x14], 0
mov eax, dword [eax]
mov dword [esp + 0x28], eax
jmp 0x1049a59
mov eax, dword [esp + 0x1c8]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
xor ebx, ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1d0]
cmp ecx, 1
sete bl
xor eax, eax
cmp ecx, 1
setne al
push eax
push 0
push esi
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x64]
push eax
call dword [0x100df248]
push eax
call dword [0x100df218]
neg eax
mov ecx, dword [esp + 0x68]
sbb eax, eax
neg eax
push eax
push dword [esp + 0x48]
mov eax, dword [esp + 0x1f0]
push ebx
push dword [esp + 0x58]
push ebp
push dword [esp + 0x54]
push dword [esp + 0x60]
push ebx
push dword [esp + 0x54]
push dword [eax]
call fcn.01051b90
mov ebx, dword [esp + 0x10]
mov esi, eax
test bl, 4
je 0x1049c2a
mov ecx, dword [esp + 0x94]
and ebx, 0xfffffffb
test ecx, ecx
je 0x1049c2a
push ecx
call fcn.01073820
mov dword [esp + 0x98], 0
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
jmp 0x1049c27
cmp ecx, 1
jne 0x1049b53
mov ecx, dword [esp + 0x1c4]
or ebx, 8
push eax
lea eax, [esp + 0xb0]
mov dword [esp + 0x2c], edi
push eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
call fcn.010773c0
mov ecx, dword [esp + 0x148]
add esp, 8
mov dword [esp + 0x2c], 0
mov eax, dword [eax]
mov dword [esp + 0x20], eax
jmp 0x1049b79
mov eax, dword [esp + 0x1c8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x2c], eax
push dword [esp + 0x1d0]
xor ebx, ebx
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x1d4]
cmp ecx, 1
sete bl
xor eax, eax
cmp ecx, 1
setne al
push eax
push 0
push esi
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x68]
push eax
call dword [0x100df248]
push eax
call dword [0x100df218]
neg eax
mov ecx, dword [esp + 0x6c]
sbb eax, eax
neg eax
push eax
push dword [esp + 0x4c]
mov eax, dword [esp + 0x1f4]
push ebx
push dword [esp + 0x44]
push ebp
push dword [esp + 0x60]
push dword [esp + 0x5c]
push ebx
push dword [esp + 0x70]
push dword [eax]
call fcn.01045730
mov ebx, dword [esp + 0x10]
mov esi, eax
test bl, 8
je 0x1049c2a
mov eax, dword [esp + 0xac]
and ebx, 0xfffffff7
test eax, eax
je 0x1049c2a
push eax
call fcn.01073820
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
add esp, 4
test esi, esi
jne 0x1049d77
cmp dword [esp + 0x140], 1
jne 0x1049d5d
mov eax, dword [esp + 0x1c8]
push 0xffffffffffffffff
push dword [eax]
call dword [0x100df1b4]
mov ecx, dword [0x1010935c]
mov eax, dword [esp + 0x1c8]
add ecx, 0x72c
push dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
call eax
mov ecx, dword [0x1010935c]
mov eax, dword [esp + 0x1c8]
add ecx, 0x72c
push dword [eax]
mov eax, dword [ecx]
call dword [eax + 0x24]
call eax
cmp dword [esp + 0x1c], 0xffffffff
jne 0x1049d52
test ebp, ebp
je 0x1049ca2
push ebp
call fcn.01073820
add esp, 4
mov eax, dword [esp + 0x130]
test eax, eax
je 0x1049cd7
push eax
call fcn.01073820
add esp, 4
mov dword [esp + 0x130], 0
mov dword [esp + 0x134], 0
mov dword [esp + 0x138], 0
test edi, edi
je 0x1049d05
push edi
call fcn.01073820
add esp, 4
mov dword [esp + 0x124], 0
mov dword [esp + 0x128], 0
mov dword [esp + 0x12c], 0
mov eax, dword [esp + 0x118]
mov ebp, dword [esp + 0x5c]
mov esi, dword [esp + 0x1a8]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x1049250
push eax
call fcn.01073820
add esp, 4
mov dword [esp + 0x118], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
jmp 0x1049250
xor eax, eax
mov dword [esp + 0x30], eax
jmp 0x1049e11
cmp dword [esp + 0x40], 0
jne 0x1049e11
mov eax, dword [esp + 0x1c8]
push dword [eax + 4]
jmp 0x1049e0b
cmp dword [esp + 0x140], 1
jne 0x1049dca
cmp dword [esp + 0x40], 0
mov esi, dword [esp + 0x4c]
jne 0x1049d93
push esi
call dword [0x100df1c8]
mov ecx, dword [0x1010935c]
mov eax, dword [esp + 0x1c8]
add ecx, 0x72c
push dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
call eax
mov eax, dword [esp + 0x1c8]
mov dword [eax + 4], esi
mov ecx, dword [esp + 0x1c8]
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
jmp 0x1049e11
mov ecx, dword [0x1010935c]
mov eax, dword [esp + 0x1c8]
add ecx, 0x72c
push dword [eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x24]
call eax
cmp dword [esp + 0x40], 0
mov eax, dword [esp + 0x1c8]
mov edx, dword [esp + 0x4c]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x1c8]
mov eax, dword [esp + 0x44]
mov dword [ecx + 0xc], eax
jne 0x1049e11
push edx
call dword [0x100df1c8]
test ebp, ebp
je 0x1049e1e
push ebp
call fcn.01073820
add esp, 4
mov ebp, dword [esp + 0x30]
lea ecx, [esp + 0xf4]
call fcn.0104ffb0
jmp 0x1049f11
lea ecx, [esp + 0xf4]
xor ebp, ebp
call fcn.0104ffb0
jmp 0x1049f11
push dword [esp + 0x1c8]
mov ecx, dword [0x1010935c]
push dword [esp + 0x1c8]
add ecx, 0x116c
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
mov eax, dword [ecx]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push dword [esp + 0x1c8]
push esi
push dword [esp + 0x1c8]
call dword [eax + 0x24]
call eax
mov ebp, eax
lea ecx, [esp + 0xf4]
call fcn.0104ffb0
jmp 0x1049f11
mov ecx, dword [0x10109618]
mov eax, dword [ecx]
call dword [eax + 0xf8]
test eax, eax
je 0x1049f0f
push 0x100fcbd4
push 5
push 0x100fcbc0
push ebp
push 0x100fcb9c
push 0x100f7164
push 4
lea ecx, [esp + 0x104]
call fcn.00fb96c0
mov ecx, eax
call fcn.00fbba10
mov ecx, eax
call fcn.00fbb8e0
mov ecx, eax
call fcn.00fbb950
mov ecx, eax
call fcn.00fbb8e0
mov ecx, eax
call fcn.00fbb950
lea ecx, [esp + 0xe8]
call fcn.00fbb6e0
xor ebp, ebp
lea ecx, [esp + 0x60]
call fcn.01030500
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18c
ret 0x34