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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4212bd
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
push ebx
push esi
push edi
mov eax, dword [0x42d018]
xor eax, esp
push eax
lea eax, [esp + 0xf0]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x20], esi
cmp byte [0xa5a096], 0
je 0x4110a8
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x4110a8
xor edi, edi
cmp word [eax], si
mov dword [esp + 0x28], edi
je 0x410a45
jmp 0x410a30
cmp edi, 0x200
jge 0x410a41
add edi, 1
cmp word [eax + edi*2], si
jne 0x410a30
mov dword [esp + 0x28], edi
mov word [eax + edi*2], si
call fcn.00407cf0
mov ebx, eax
cmp ebx, esi
mov dword [esp + 0x24], ebx
je 0x410aa1
mov eax, dword [0xa59134]
mov eax, dword [eax]
cmp dword [0xa5a0ac], eax
mov dword [esp + 0x1c], eax
je 0x410a8e
push 0xa59180
call fcn.00406b20
add esp, 4
test eax, eax
jne 0x410a84
mov dword [0xa59180], esi
jmp 0x410a8e
mov ecx, dword [esp + 0x1c]
mov dword [0xa5a0ac], ecx
push ebx
call dword [0xa59180]
add esp, 4
test eax, eax
setne al
test al, al
jne 0x410aa5
mov dword [esp + 0x24], esi
mov dword [esp + 0xf8], esi
cmp byte [0xa5a097], 0
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x50], esi
mov dword [esp + 0x18], esi
jne 0x410c2f
mov ebx, dword [ebp + 0x14]
cmp ebx, esi
je 0x410c2f
mov eax, dword [0xa5a0e0]
mov ecx, dword [eax + 4]
mov edx, dword [ebx + 0x84]
lea eax, [ecx + edx*4]
mov eax, dword [eax]
cmp eax, esi
mov dword [esp + 0x14], eax
je 0x410b40
mov edx, dword [0xa59134]
mov eax, dword [edx]
cmp dword [0xa5a0ac], eax
mov dword [esp + 0x1c], eax
je 0x410b29
push 0xa59180
call fcn.00406b20
add esp, 4
test eax, eax
jne 0x410b20
mov dword [0xa59180], esi
jmp 0x410b29
mov eax, dword [esp + 0x1c]
mov dword [0xa5a0ac], eax
mov ecx, dword [esp + 0x14]
push ecx
call dword [0xa59180]
add esp, 4
test eax, eax
setne al
test al, al
jne 0x410b44
mov dword [esp + 0x14], esi
mov byte [esp + 0xf8], 1
fld dword [ebx + 0x8c]
fmul dword [0x42d298]
push 4
fimul dword [ebx + 0x80]
fstp dword [esp + 0x1c]
fld dword [esp + 0x1c]
fst dword [esp + 0x80]
fldz
fst dword [esp + 0x84]
fst dword [esp + 0x88]
fst dword [esp + 0x90]
fstp dword [esp + 0x94]
fstp dword [esp + 0x8c]
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
cmp eax, esi
je 0x410beb
xor ebx, ebx
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x80]
push ecx
mov byte [esp + 0x100], 3
push eax
lea eax, [esp + 0x24]
lea ecx, [esp + 0x30]
lea edx, [esp + 0x20]
mov dword [esp + 0x2c], 1
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x44], esi
call fcn.004088c0
jmp 0x410bf1
mov ebx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0xf8], 1
test byte [esp + 0x20], 1
mov dword [esp + 0x18], eax
je 0x410c15
cmp ebx, esi
je 0x410c15
push ebx
call dword [0xa59184]
add esp, 4
mov byte [esp + 0xf8], 0
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x410c2f
push eax
call dword [0xa59184]
add esp, 4
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
lea ecx, [edi*4 + 4]
push ecx
push esi
push eax
mov dword [0xa5a0d0], eax
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x24]
mov eax, dword [ebp + 8]
add esp, 0xc
push edx
push edi
push eax
lea ecx, [esp + 0xa0]
push ecx
call fcn.0040fce0
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
xor ecx, ecx
mov eax, edi
mov edx, 4
mul edx
seto cl
mov byte [esp + 0x108], 7
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov dword [esp + 0x28], eax
add esp, 0x14
lea eax, [esp + 0xa4]
push eax
call fcn.00408a30
cmp edi, esi
mov byte [esp + 0xf8], 8
mov eax, Ordinal_1
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov eax, Ordinal_1
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x1c], esi
jle 0x410e7e
mov ebx, dword [esp + 0x98]
add ebx, 8
mov dword [esp + 0x20], ebx
jmp 0x410d18
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ecx, dword [0xa5a0d0]
cmp dword [ecx + esi*4], 0
je 0x410e7e
mov eax, 1
lea edi, [esp + 0x3c]
call fcn.00412de0
mov byte [esp + 0xf8], 9
mov edx, dword [ebx - 8]
mov eax, dword [esp + 0x40]
mov dword [eax], edx
fld dword [ebx - 4]
fstp dword [eax + 4]
lea ecx, [esp + 0x2c]
fld dword [ebx]
fstp dword [eax + 8]
mov eax, dword [0xa5a0d0]
mov eax, dword [eax + esi*4]
call fcn.00408900
mov edi, eax
mov byte [esp + 0xf8], 0xa
mov ecx, dword [0xa5a0d0]
mov eax, dword [ecx + esi*4]
mov eax, dword [eax]
lea edx, [esp + 0xd4]
push edx
push eax
call dword [0xa595b8]
add esp, 8
test eax, eax
jne 0x410f84
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x58]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0xe4]
push ecx
push edi
lea eax, [esp + 0x60]
call fcn.00406a70
add esp, 0x18
mov ebx, eax
call fcn.00413dc0
lea edx, [esp + 0x30]
push edx
mov edi, eax
call fcn.00406760
mov ebx, 0xc
mov byte [esp + 0xf8], bl
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x410dec
push eax
call dword [0xa59184]
add esp, 4
mov ecx, dword [esp + 0xa4]
lea eax, [esp + 0xa0]
push eax
mov eax, dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x3c]
push 4
lea edx, [esp + 0x78]
push edx
mov edx, dword [ecx + 0x30]
push 0
push eax
call edx
add esp, 0x18
test eax, eax
jne 0x410f84
mov eax, dword [esp + 0xb4]
mov ecx, dword [eax]
mov edx, dword [esp + 0xac]
sub ecx, dword [edx]
mov eax, dword [esp + 0x14]
sar ecx, 2
mov dword [eax + esi*4], ecx
mov byte [esp + 0xf8], 9
call fcn.00405e70
mov ecx, dword [esp + 0x30]
mov edx, dword [eax + 0x10]
push ecx
call edx
add esp, 4
lea esi, [esp + 0x3c]
mov byte [esp + 0xf8], 8
call fcn.00412e40
mov eax, dword [esp + 0x1c]
add dword [esp + 0x20], ebx
add eax, 1
cmp eax, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
jl 0x410d10
mov eax, dword [esp + 0xb4]
mov esi, dword [eax]
mov eax, dword [esp + 0xac]
sub esi, dword [eax]
mov ecx, dword [esp + 0xa8]
sar esi, 2
mov edx, dword [eax]
mov edi, dword [ecx]
mov dword [esp + 0x2c], edx
je 0x410f8a
mov eax, dword [0xa5a0e8]
test eax, eax
je 0x410eba
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor ecx, ecx
lea eax, [esi + esi]
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
mov dword [0xa5a0e8], eax
mov eax, dword [0xa5a0ec]
add esp, 4
test eax, eax
je 0x410eed
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
xor ecx, ecx
test esi, esi
mov dword [0xa5a0ec], eax
jbe 0x410f40
mov edx, dword [0xa5a0e8]
fld dword [edi]
mov ebx, dword [esp + 0x2c]
fstp qword [edx]
add edi, 4
fld dword [edi]
add ecx, 1
fstp qword [edx + 8]
mov bx, word [ebx + ecx*4 - 4]
mov word [eax + ecx*2 - 2], bx
add edi, 4
add edx, 0x10
cmp ecx, esi
jb 0x410f19
mov ecx, dword [ebp + 0xc]
mov edx, dword [0xa5a0e8]
mov ebx, dword [esp + 0x28]
test ebx, ebx
mov dword [ecx], edx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jle 0x410f8a
or word [eax], 0x80
add ebx, 0xffffffff
xor ecx, ecx
test ebx, ebx
jle 0x410f8a
mov edi, dword [esp + 0x14]
cmp dword [edi + ecx*4], esi
jae 0x410f7b
mov edx, dword [edi + ecx*4]
or word [eax + edx*2], 0x80
lea edx, [eax + edx*2]
add ecx, 1
cmp ecx, ebx
jl 0x410f66
jmp 0x410f8e
push eax
call fcn.00405c60
mov edi, dword [esp + 0x14]
mov eax, dword [0xa5a0d0]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov ebx, dword [esp + 0x1c]
add esp, 4
test ebx, ebx
mov dword [0xa5a0d0], 0
je 0x410fc7
mov eax, dword [ebx]
test eax, eax
je 0x410fbe
push eax
call dword [0xa59184]
add esp, 4
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov byte [esp + 0xf8], 7
call fcn.00405e70
mov ecx, dword [esp + 0xa4]
mov edx, dword [eax + 0x10]
push ecx
call edx
mov byte [esp + 0xfc], 0
mov edx, dword [esp + 0x98]
add esp, 4
test edx, edx
je 0x411073
mov ecx, dword [0xa5a24c]
test cl, 1
jne 0x411036
or ecx, 1
xor eax, eax
mov dword [0xa5a24c], ecx
mov dword [0xa5a234], eax
mov dword [0xa5a238], eax
mov dword [0xa5a23c], eax
mov dword [0xa5a240], eax
mov dword [0xa5a244], eax
mov dword [0xa5a248], eax
jmp 0x41103b
mov eax, dword [0xa5a240]
test eax, eax
je 0x411073
test cl, 1
jne 0x41106d
or ecx, 1
xor eax, eax
mov dword [0xa5a24c], ecx
mov dword [0xa5a234], eax
mov dword [0xa5a238], eax
mov dword [0xa5a23c], eax
mov dword [0xa5a240], eax
mov dword [0xa5a244], eax
mov dword [0xa5a248], eax
push edx
call eax
add esp, 4
mov dword [esp + 0xf8], 0xffffffff
mov eax, dword [esp + 0x24]
test eax, eax
je 0x411090
push eax
call dword [0xa59184]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [esp + 0xf0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret