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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xb2c
lea ebx, [esp + 0x300]
mov dword [esp], 0x104
mov dword [esp + 4], ebx
call dword [0x198a1bc]
mov edx, 0x104
mov eax, ebx
sub esp, 8
lea ecx, [esp + 0x508]
jmp 0x401562
add eax, 2
sub edx, 1
cmp eax, ecx
je 0x40159d
cmp word [eax], 0
jne 0x401558
test edx, edx
je 0x40159d
mov eax, 0x104
sub eax, edx
lea edi, [ebx + eax*2]
mov eax, section..rdata
jmp 0x401590
mov word [edi], cx
add eax, 2
lea esi, [edi + 2]
sub edx, 1
je 0x401598
mov edi, esi
movzx ecx, word [eax]
test cx, cx
jne 0x401580
xor ecx, ecx
mov word [edi], cx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 6
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x40000000
mov dword [esp], ebx
call dword [0x198a1a4]
sub esp, 0x1c
mov esi, eax
lea eax, [esp + 0x60]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1577c00
mov dword [esp + 4], 0x403004
mov dword [esp], esi
call dword [0x198a1e0]
sub esp, 0x14
mov dword [esp], esi
call dword [0x198a1a0]
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [0x198a268]
sub esp, 8
test eax, eax
js 0x401e28
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 3
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0
call dword [0x198a26c]
sub esp, 0x24
test eax, eax
js 0x401e28
mov dword [esp + 4], 0
mov dword [esp], 2
call fcn.00401ec0
sub esp, 8
lea eax, [esp + 0x64]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00401ec8
sub esp, 8
test eax, eax
jne 0x401e50
lea eax, [esp + 0x68]
mov dword [esp + 4], 0x197f0d4
mov dword [esp + 0xc], eax
lea eax, [esp + 0x100]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x68], 0x100
mov dword [esp], eax
call fcn.00401ed8
sub esp, 0x10
test eax, eax
mov eax, dword [esp + 0x64]
mov dword [esp], eax
jne 0x401e68
call fcn.00401ee0
mov esi, 0x104
mov edx, 0x197f010
sub esp, 4
lea ebp, [esp + 0x508]
lea edi, [esp + 0x710]
mov eax, ebp
jmp 0x40173d
add eax, 2
add edx, 2
sub esi, 1
mov word [eax - 2], cx
cmp eax, edi
je 0x401e84
movzx ecx, word [edx]
test cx, cx
jne 0x401728
test esi, esi
je 0x401e84
xor edx, edx
lea ecx, [esp + 0x710]
mov word [eax], dx
mov edx, 0x104
mov eax, ebp
jmp 0x401772
add eax, 2
sub edx, 1
cmp eax, ecx
je 0x4017ad
cmp word [eax], 0
jne 0x401768
test edx, edx
je 0x4017ad
mov eax, 0x104
sub eax, edx
lea esi, [ebp + eax*2]
lea eax, [esp + 0x100]
jmp 0x4017a0
mov word [esi], cx
add eax, 2
lea edi, [esi + 2]
sub edx, 1
je 0x4017a8
mov esi, edi
movzx ecx, word [eax]
test cx, cx
jne 0x401790
xor edi, edi
mov word [esi], di
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], pe_overlay
mov dword [esp + 8], 0x197f0ec
mov dword [esp + 4], ebp
mov dword [esp], 0x80000002
call dword [0x198a198]
sub esp, 0x1c
test eax, eax
je 0x401e50
mov dword [esp + 4], 0x197f10c
mov dword [esp], ebx
call fcn.00401ed0
sub esp, 8
mov esi, eax
mov dword [esp], ebx
call dword [0x198a1ac]
sub esp, 4
test esi, esi
je 0x401822
cmp esi, 0xbc2
jne 0x401e5c
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1981214
call fcn.00402f50
sub esp, 0x10
lea eax, [esp + 0x70]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1981204
call fcn.00402f50
mov edx, 0x104
sub esp, 0x10
mov ebx, dword [esp + 0x6c]
lea ebp, [esp + 0x710]
mov edi, ebp
mov eax, ebx
jmp 0x4018a0
mov word [edi], cx
add eax, 2
lea esi, [edi + 2]
sub edx, 1
je 0x4018a8
mov edi, esi
movzx ecx, word [eax]
test cx, cx
jne 0x401890
xor esi, esi
mov dword [esp + 0x5c], ebx
mov eax, dword [esp + 0x70]
mov edx, 0x104
mov word [edi], si
lea edi, [esp + 0x918]
mov esi, edi
jmp 0x4018d8
mov word [esi], cx
add eax, 2
lea ebx, [esi + 2]
sub edx, 1
je 0x4018e0
mov esi, ebx
movzx ecx, word [eax]
test cx, cx
jne 0x4018c8
mov ebx, dword [esp + 0x5c]
xor ecx, ecx
mov word [esi], cx
mov dword [esp], ebx
mov ebx, dword [0x198a270]
call ebx
sub esp, 4
mov eax, dword [esp + 0x70]
mov dword [esp], eax
call ebx
mov edx, 0x104
mov eax, ebp
sub esp, 4
jmp 0x40191a
add eax, 2
sub edx, 1
cmp eax, edi
je 0x40195d
cmp word [eax], 0
jne 0x401910
test edx, edx
je 0x40195d
mov eax, 0x104
sub eax, edx
lea esi, [ebp + eax*2]
mov eax, 0x197f07c
jmp 0x401950
mov word [esi], cx
add eax, 2
lea ebx, [esi + 2]
sub edx, 1
je 0x401958
mov esi, ebx
movzx ecx, word [eax]
test cx, cx
jne 0x401940
xor edx, edx
mov word [esi], dx
mov edx, 0x104
mov eax, edi
jmp 0x401981
add eax, 2
lea ebx, [esp + 0xb20]
sub edx, 1
cmp eax, ebx
je 0x4019bd
cmp word [eax], 0
jne 0x401970
test edx, edx
je 0x4019bd
mov eax, 0x104
sub eax, edx
lea esi, [edi + eax*2]
mov eax, 0x197f0b0
jmp 0x4019b0
mov word [esi], cx
add eax, 2
lea ebx, [esi + 2]
sub edx, 1
je 0x4019b8
mov esi, ebx
movzx ecx, word [eax]
test cx, cx
jne 0x4019a0
xor eax, eax
mov word [esi], ax
mov ebx, dword [0x198a1c8]
mov dword [esp + 4], 6
mov dword [esp], ebp
call ebx
sub esp, 8
mov dword [esp + 4], 6
mov dword [esp], edi
call ebx
sub esp, 8
lea eax, [esp + 0x74]
mov dword [esp + 0xc], 0x1985654
mov dword [esp + 0x10], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0
mov dword [esp], 0x1980a34
call dword [0x198a264]
sub esp, 0x14
test eax, eax
js 0x401e5c
mov eax, dword [esp + 0x74]
lea ebx, [esp + 0xf0]
mov esi, dword [0x198a280]
mov eax, dword [eax]
mov ebp, dword [eax + 0x28]
mov dword [esp], ebx
call esi
sub esp, 4
mov eax, dword [esp + 0xf0]
mov dword [esp], ebx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x8c], eax
call esi
sub esp, 4
mov eax, dword [esp + 0xf0]
mov dword [esp], ebx
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0x9c], eax
call esi
sub esp, 4
mov eax, dword [esp + 0xf0]
mov dword [esp], ebx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0xac], eax
call esi
sub esp, 4
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0xf8]
mov edi, dword [esp + 0xf0]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0xb0], edi
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0xb4], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0xb8], edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x20], eax
mov dword [esp + 4], edi
mov eax, dword [esp + 0xfc]
mov dword [esp + 8], ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], edx
mov dword [esp], eax
call ebp
sub esp, 0x44
test eax, eax
mov eax, dword [esp + 0x74]
js 0x401e9f
mov eax, dword [eax]
mov edi, dword [0x198a27c]
mov ebp, dword [eax + 0x1c]
mov dword [esp], 0x197f164
call edi
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x78]
mov dword [esp + 8], edx
mov dword [esp], eax
call ebp
sub esp, 0xc
test eax, eax
mov eax, dword [esp + 0x74]
js 0x401e9f
mov edx, dword [eax]
lea ecx, [esp + 0x7c]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [edx + 0x24]
sub esp, 0xc
test eax, eax
mov eax, dword [esp + 0x74]
mov edx, dword [eax]
mov dword [esp], eax
js 0x401eac
call dword [edx + 8]
sub esp, 4
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
mov ebp, dword [eax + 0x50]
mov dword [esp], 0x197ac04
call edi
sub esp, 4
mov dword [esp + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
call ebp
sub esp, 8
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
mov edi, dword [eax + 0x44]
mov dword [esp], ebx
call esi
sub esp, 4
mov eax, dword [esp + 0xf0]
mov dword [esp], ebx
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0xcc], eax
call esi
sub esp, 4
mov eax, dword [esp + 0xf0]
mov dword [esp], ebx
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xf4]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xf8]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0xdc], eax
call esi
sub esp, 4
mov dword [esp + 0x44], ebx
mov ebx, dword [esp + 0xc0]
mov eax, dword [esp + 0xfc]
mov esi, dword [esp + 0xf0]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0xc4]
mov ecx, dword [esp + 0xf4]
mov edx, dword [esp + 0xf8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0xc8]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0xcc]
mov dword [esp + 0xe0], esi
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0xd0]
mov dword [esp + 0xe4], ecx
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0xd4]
mov dword [esp + 0xe8], edx
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0xd8]
mov dword [esp + 0x10], esi
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0xdc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], 6
mov dword [esp + 8], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 4], 0
mov dword [esp], eax
call edi
sub esp, 0x48
test eax, eax
js 0x401e8c
mov eax, dword [esp + 0xf0]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [esp + 0x7c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [esp + 0x78]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
call dword [0x198a274]
add esp, 0xb2c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], ebx
call dword [0x198a1ac]
sub esp, 4
add esp, 0xb2c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esp], ebx
call dword [0x198a1ac]
sub esp, 4
call dword [0x198a274]
jmp 0x401e34
call fcn.00401ee0
sub esp, 4
mov dword [esp], ebx
call dword [0x198a1ac]
sub esp, 4
call dword [0x198a274]
jmp 0x401e34
sub eax, 2
jmp 0x40174d
mov eax, dword [esp + 0x78]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
mov eax, dword [esp + 0x7c]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 8]
sub esp, 4
jmp 0x401e5c
call dword [edx + 8]
sub esp, 4
mov eax, dword [esp + 0x78]
jmp 0x401e9f