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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
cmp ebx, edi
je 0x10413e6
cmp dword [ebp + 0x18], edi
je 0x10413e6
mov ecx, dword [ebp + 0xc]
movzx eax, word [ecx]
add eax, 0xfffffea0
mov dword [ebp - 8], edi
cmp eax, 7
ja case.0x1040b3e.356
jmp dword [eax*4 + 0x10413f8]
mov esi, 1
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
mov dword [ebp + 8], esi
call fcn.0103ab90
mov edi, eax
test edi, edi
js 0x10413eb
push ebx
call fcn.0103a920
mov edi, eax
test edi, edi
js 0x10413eb
call fcn.01048630
mov dword [ebp - 0xc], eax
mov dword [ebx], eax
test eax, eax
je 0x104132a
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x1e4], fcn.01078110
mov dword [ebx + 0x2c8], fcn.01081010
xor edi, edi
mov eax, dword [ebp + 0x1c]
cmp eax, edi
je 0x1040c09
mov eax, dword [eax + 0xc]
jmp 0x1040c0b
mov esi, 2
jmp 0x1040b4a
mov esi, 3
jmp 0x1040b4a
mov esi, 3
mov dword [ebp - 8], 1
jmp 0x1040b4a
mov esi, 2
mov dword [ebp + 8], esi
mov dword [ebp - 4], 1
jmp 0x1040ba7
mov esi, 3
mov dword [ebp + 8], esi
mov dword [ebp - 4], 1
jmp 0x1040ba7
mov eax, 1
mov esi, 3
mov dword [ebp + 8], esi
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
jmp 0x1040ba7
xor eax, eax
mov dword [ebx + 0x2c0], eax
mov dword [ebx + 0x2c4], eax
movzx edx, word [ecx + 0x14]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 4]
add eax, eax
push edx
add eax, eax
push esi
add eax, eax
push eax
push ecx
call fcn.010468b0
cmp eax, edi
jle case.0x1040b3e.356
lea edx, [ebx + 0x1dc]
cmp dword [ebp + 0x14], edi
je 0x1040c51
mov esi, dword [ebp + 0x14]
mov ecx, 7
mov edi, edx
rep movsd dword es:[edi], dword [esi]
jmp 0x1040c67
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
movzx ecx, word [edx]
mov edi, dword [ebx + 0x1e0]
mov esi, ecx
mov dword [ebp + 0x14], esi
mov dword [ebp - 0x10], edi
test esi, 0x200
je 0x1040c8a
mov dword [ebx + 0x19c], 1
cmp word [ebx + 0x1f4], 0
mov dword [ebx + 0x1a0], 0
je 0x1040cb0
or esi, 0x80
or ecx, 0x80
mov dword [ebp + 0x14], esi
mov word [edx], cx
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx + 0x10]
mov ecx, dword [ebp + 0xc]
movzx edi, word [ecx + 0xe]
push edx
lea ecx, [edi + 7]
shr ecx, 3
cmp esi, ecx
cmovbe esi, ecx
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx]
push edx
push ecx
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + 0x16]
push edx
movzx edx, word [ecx + 0x14]
push edx
movzx edx, word [ecx + 0xc]
push edx
mov edx, dword [ecx + 8]
push edx
mov edx, dword [ecx + 0x10]
push edx
movzx edx, word [ecx + 2]
mov ecx, dword [ecx + 4]
push edi
push esi
mov esi, dword [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
push edx
push eax
push esi
call fcn.010490b0
mov edi, eax
test edi, edi
js 0x10413eb
mov eax, dword [ebx]
cmp dword [eax + 0x3c], 2
jg 0x1040d2c
cmp dword [eax + 0xd4], 0
je 0x1040d46
mov al, byte [eax + 8]
add al, 0xb
jmp 0x1040d3e
cmp dword [eax + 0x25c], 0
mov al, byte [eax + 8]
je 0x1040d3c
add al, 0x11
jmp 0x1040d3e
add al, 6
cmp al, 0x20
ja case.0x1040b3e.356
movzx ecx, word [esi + 0x22]
imul ecx, ecx, 0x6f0
push ecx
call fcn.01046c10
mov dword [ebx + 4], eax
test eax, eax
je 0x104132a
movzx edx, word [esi + 0x22]
imul edx, edx, 0x6f0
push edx
push 0
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebx + 4]
add esp, 0xc
push eax
push esi
call fcn.010471d0
mov edi, eax
test edi, edi
js 0x10413eb
mov ecx, dword [ebx + 4]
push ecx
push ebx
call fcn.0103aa00
mov edi, eax
test edi, edi
js 0x10413eb
mov edx, dword [ebx + 4]
push edx
push esi
call fcn.01047730
mov edi, eax
test edi, edi
js 0x10413eb
mov eax, dword [ebx + 4]
push ebx
mov dword [esi + 0x140], eax
call fcn.0103ea60
mov edi, eax
test edi, edi
js 0x10413eb
xor edi, edi
cmp dword [esi + 0x24c], edi
je 0x1040df0
mov dword [ebx + 0x204], edi
mov dword [ebx + 0x200], 0x107a530
mov dword [esi + 0x1e4], 0x107a420
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x160], edi
mov dword [ebx + 0x1a4], edi
mov ecx, dword [eax + 4]
mov dword [ebx + 0x168], ecx
mov eax, dword [eax + 8]
mov dword [ebx + 0x16c], eax
movzx edx, word [esi + 0x22]
cmp edx, ecx
jne 0x1040e1e
cmp dword [esi + 0x68], eax
je 0x1040e31
cmp dword [esi + 0x3c], 2
jle case.0x1040b3e.356
mov eax, 1
mov dword [ebx + 0x160], eax
jmp 0x1040e36
mov eax, 1
cmp dword [ebx + 0x160], eax
jne 0x1040f49
test dword [ebp + 0x14], 0x100
je 0x1040e51
mov dword [ebx + 0x1a4], eax
cmp dword [ebx + 0x1a4], eax
jne 0x1040e64
cmp ecx, 2
jne 0x1040e64
cmp word [esi + 0x22], cx
ja 0x1040e6a
mov dword [ebx + 0x1a4], edi
cmp dword [ebx + 0x1a4], edi
jne 0x1040ea5
mov eax, dword [ebx + 0x16c]
movzx edx, word [esi + 0x22]
push eax
mov eax, dword [ebp - 0x10]
push ecx
mov ecx, dword [esi + 0x68]
push ecx
push edx
push eax
push ebx
call fcn.0103f9e0
test eax, eax
je 0x1040f49
mov edi, 0x80040000
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [ebx + 0x1a8], edi
movzx eax, word [esi + 0x22]
cmp eax, 6
jne 0x1040eba
cmp dword [esi + 0x68], 0x3f
je 0x1040ee1
mov ecx, dword [esi + 0x68]
push 0x3f
push 6
push ecx
push eax
push 0
push ebx
call fcn.0103f9e0
mov edi, eax
test edi, edi
js 0x10413eb
mov dword [ebx + 0x1a8], 1
xor edi, edi
push 0xa8
call fcn.01046c10
mov dword [ebx + 0x1ac], eax
cmp eax, edi
je 0x104132a
push eax
call fcn.010742f0
mov edx, dword [ebx + 0x1ac]
mov dword [ebx + 0x1b0], 0x3e8
movzx ecx, word [esi + 0x6e]
dec ecx
mov eax, 1
shl eax, cl
push 0x3e8
push ecx
mov ecx, dword [esi + 0x1c4]
dec eax
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
movss dword [esp], xmm0
push ecx
push 0x28
push edx
call fcn.01074400
mov edi, eax
test edi, edi
js 0x10413eb
xor edi, edi
mov dword [ebx + 0x1c0], edi
mov dword [ebx + 0x1d0], edi
mov dword [ebx + 0x1d4], edi
mov dword [ebx + 0x1b8], edi
mov dword [ebx + 0x1cc], edi
cmp dword [esi + 0x3c], 2
jle 0x1040fca
movzx eax, word [esi + 0x22]
imul eax, eax
add eax, eax
add eax, eax
push eax
call fcn.01046c10
mov dword [ebx + 0x1c0], eax
cmp eax, edi
je 0x104132a
movzx eax, word [esi + 0x22]
imul eax, eax
add eax, eax
add eax, eax
push eax
call fcn.01046c10
mov dword [ebx + 0x1d0], eax
cmp eax, edi
je 0x104132a
movzx eax, word [esi + 0x22]
imul eax, eax
add eax, eax
add eax, eax
push eax
call fcn.01046c10
mov dword [ebx + 0x1d4], eax
cmp eax, edi
je 0x104132a
movzx eax, word [esi + 0x22]
mov ecx, dword [ebx + 0x168]
cmp eax, ecx
jg 0x1040fda
mov eax, ecx
cmp dword [ebx + 0x1a8], edi
je 0x1040fec
cmp eax, 6
jg 0x1040fec
mov eax, 6
lea edi, [eax*4]
push edi
call fcn.01046c10
mov dword [ebx + 0x17c], eax
test eax, eax
je 0x104132a
push edi
mov dword [ebx + 0x180], eax
call fcn.01046c10
mov dword [ebx + 0x184], eax
test eax, eax
je 0x104132a
mov edi, dword [ebp + 0x10]
mov dword [ebx + 0x188], eax
mov eax, ebx
call fcn.0103ad80
mov eax, edi
mov ecx, dword [eax]
xor eax, eax
mov dword [ebx + 0x150], ecx
mov dword [ebx + 0x13c], eax
mov dword [ebx + 0x144], eax
mov dword [ebx + 0x140], eax
mov ecx, dword [esi + 0x1c4]
mov eax, dword [ebx + 0x150]
lea edx, [ecx + ecx]
cmp eax, edx
jne 0x104106e
mov dword [ebx + 0x13c], 1
jmp 0x104108e
cmp eax, ecx
je 0x104108e
mov dword [ebx + 0x144], 1
cmp eax, dword [esi + 0x1c4]
jge 0x104108e
mov dword [ebx + 0x140], 1
push eax
mov eax, dword [esi + 0x1c4]
push eax
push ebx
call fcn.0103be70
cmp dword [ebx + 0x148], 0x2710
mov eax, dword [ebx + 0x14c]
mov dword [ebx + 0x154], eax
jge case.0x1040b3e.356
cmp eax, 0x2710
jge case.0x1040b3e.356
cmp dword [ebx + 0x13c], 0
jne 0x10410d5
cmp dword [ebx + 0x144], 0
je 0x1041134
mov ecx, dword [ebx + 0x168]
add ecx, ecx
add ecx, ecx
push ecx
call fcn.01046c10
mov dword [ebx + 0x158], eax
test eax, eax
je 0x104132a
xor eax, eax
cmp dword [ebx + 0x168], eax
jle 0x1041116
lea ecx, [ecx]
mov edx, dword [ebx + 0x158]
mov dword [edx + eax*4], 0
inc eax
cmp eax, dword [ebx + 0x168]
jl 0x1041100
mov eax, dword [ebx + 0x168]
add eax, eax
add eax, eax
push eax
call fcn.01046c10
mov dword [ebx + 0x15c], eax
test eax, eax
je 0x104132a
test byte [ebp + 0x14], 0x80
mov dword [esi + 0x1ec], 0x10405b0
mov dword [ebx + 0x1d8], 0
je 0x1041166
movsx ecx, word [ebx + 0x1f4]
push ecx
push ebx
call fcn.010401e0
mov edi, eax
test edi, edi
js 0x10413eb
push ebx
call fcn.0103ae00
mov edx, dword [ebp + 0xc]
cmp word [edx + 2], 1
jne 0x1041182
mov dword [ebx + 0x1fc], 0x10784e0
jmp 0x104118c
mov dword [ebx + 0x1fc], 0x1078530
push ebx
lea edi, [ebx + 0xe0]
push edi
call fcn.010750b0
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x10411ae
mov eax, dword [ecx + 4]
mov dword [edi], eax
mov edx, dword [ecx + 8]
mov dword [ebx + 0xe4], edx
mov eax, dword [esi + 0x120]
cmp eax, 3
jne 0x10411e2
mov eax, dword [esi + 0x140]
mov dword [eax + 0x18], 0x1016290
mov edx, dword [esi + 0x140]
mov dword [edx + 0x1c], 0x101aac0
mov eax, dword [esi + 0x140]
mov dword [eax + 0x20], 0x101ae78
jmp 0x1041240
cmp eax, 1
jne 0x1041210
mov edx, dword [esi + 0x140]
mov dword [edx + 0x18], 0x10195e8
mov eax, dword [esi + 0x140]
mov dword [eax + 0x1c], 0x101dea0
mov edx, dword [esi + 0x140]
mov dword [edx + 0x20], 0x101e3d0
jmp 0x1041240
cmp eax, 2
jne 0x10413e6
mov eax, dword [esi + 0x140]
mov dword [eax + 0x18], 0x1016960
mov edx, dword [esi + 0x140]
mov dword [edx + 0x1c], 0x101b900
mov eax, dword [esi + 0x140]
mov dword [eax + 0x20], 0x101c370
mov dword [esi + 0x48], 3
mov dword [esi + 4], 0xfffffffe
test ecx, ecx
je 0x104125c
call fcn.01046bf0
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebx + 0x74], 0
movzx edx, word [esi + 0x22]
lea eax, [ebx + 0x78]
push edx
push eax
call fcn.0104b070
mov edi, eax
test edi, edi
js 0x10413eb
mov ecx, dword [ebx]
xor eax, eax
xor edx, edx
mov dword [ebp + 0xc], eax
cmp dx, word [ecx + 0x22]
jae 0x10412fe
mov dword [ebp + 0x10], eax
lea ecx, [ecx]
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebp + 0x10]
mov dword [ecx + eax + 0x90], 0
movzx eax, word [esi + 0x22]
imul eax, eax
add eax, eax
add eax, eax
push eax
call fcn.01046c10
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebx + 0x78]
mov dword [ecx + edx + 0x94], eax
mov eax, dword [ebx + 0x78]
mov ecx, dword [ecx + eax + 0x94]
test ecx, ecx
je 0x104132a
movzx eax, word [esi + 0x22]
imul eax, eax
add eax, eax
add eax, eax
push eax
push 0
push ecx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebx]
mov eax, dword [ebp + 0xc]
movzx edx, word [ecx + 0x22]
add dword [ebp + 0x10], 0x98
inc eax
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, edx
jl 0x1041290
xor eax, eax
cmp dword [esi + 0x3c], 3
mov ecx, dword [ebx + 0x78]
mov dword [esi + 0x240], ecx
mov dword [esi + 0x23c], eax
jl 0x1041319
test byte [esi + 0x40], 1
jne 0x104131e
cmp dword [ebp - 8], eax
je 0x104133a
mov dword [esi + 0xb0], 1
jmp 0x1041340
mov edi, 0x8007000e
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov dword [esi + 0xb0], eax
movzx edx, word [esi + 0x22]
add edx, edx
add edx, edx
push edx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x2dc], 1
call fcn.01046c10
mov dword [ebx + 0xc0], eax
test eax, eax
je 0x104132a
movzx ecx, word [esi + 0x22]
add ecx, ecx
add ecx, ecx
push ecx
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor esi, esi
push esi
push esi
push 1
call fcn.01046c00
xor eax, eax
cmp dword [ebx + 0xe0], esi
mov ecx, 0x80000000
setne al
mov dword [ebx + 0xac], ecx
mov dword [ebx + 0xb4], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebx + 0x12c], esi
mov dword [ebx + 0x9c], esi
mov dword [ebx + 0xa8], esi
inc eax
mov dword [ebx + 0x2b4], eax
mov dword [ebx + 0xb0], esi
xor edx, edx
mov dword [ebx + 0x2b8], 1
mov word [ebx + 0x9a], dx
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edi, 0x80070057
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18