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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x30], 0
jne 0x10002da0
mov dword [ebx + 0x78], 2
mov eax, 1
mov dword [ebx + 0x7c], 0x50090
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [ebp + 0x18]
mov edx, 1
mov dword [esp + 0x30], edx
test edi, edi
je 0x10002dbc
cmp dword [edi], 0
je 0x10002dbc
mov edx, dword [edi + 0x18]
mov dword [esp + 0x30], edx
mov esi, dword [ebp + 0x10]
mov eax, esi
mov ecx, dword [ebp + 0x14]
or eax, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], ecx
je 0x10003086
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], ecx
test edi, edi
je 0x10002e06
cmp dword [edi], 0
je 0x10002e06
push 0
push edx
push eax
push ecx
call fcn.10015200
push edx
push eax
mov ecx, edi
call fcn.10013c50
test eax, eax
jne 0x1000304b
mov ecx, dword [ebx + 0x30]
xor esi, esi
push esi
push esi
push 1
push dword [esp + 0x28]
mov eax, dword [ecx]
xor edi, edi
push dword [esp + 0x24]
mov dword [esp + 0x40], edi
push dword [ebx + 0x60]
mov dword [esp + 0x40], esi
call dword [eax + 4]
test eax, eax
je 0x10002f3d
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
cdq
and edx, 0x1ff
mov dword [esp + 0x20], ecx
add eax, edx
sar eax, 9
test eax, eax
jle 0x10002efb
mov dword [esp + 0x24], ecx
mov eax, dword [ebx + 0x60]
mov esi, 0x1fc
add eax, ecx
mov dword [esp + 0x34], eax
mov edx, eax
mov eax, 0x10018558
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10002e7a
add edx, 4
add eax, 4
sub esi, 4
jae 0x10002e67
jmp 0x10002ec5
mov ecx, dword [esp + 0x34]
call fcn.1000b8e0
test eax, eax
je 0x10002ef3
push 0x10021b20
push 0x200
call fcn.100140a0
add esp, 8
mov dword [esp + 0x28], eax
test eax, eax
je 0x10002f27
mov esi, dword [ebx + 0x60]
mov edi, eax
add esi, dword [esp + 0x24]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
call fcn.1000c2b0
inc dword [esp + 0x2c]
mov edi, 1
mov eax, dword [ebx + 0x3c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc esi
cdq
add ecx, 0x200
and edx, 0x1ff
mov dword [esp + 0x20], esi
add eax, edx
mov dword [esp + 0x24], ecx
sar eax, 9
cmp esi, eax
jl 0x10002e52
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
mov eax, dword [ebx + 0x3c]
cdq
and edx, 0x1ff
add eax, edx
sar eax, 9
cmp ecx, eax
jne 0x10002f27
cmp dword [esp + 0x2c], 1
jne 0x10002f27
push 0
push esi
push dword [esp + 0x24]
mov ecx, ebx
push dword [esp + 0x20]
call fcn.10003900
test edi, edi
je 0x10002f3d
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
sub esi, edi
sbb edx, 0
jmp 0x1000305a
mov ecx, dword [ebx + 0x30]
mov edi, dword [esp + 0x1c]
push 0
push 0
mov eax, dword [ecx]
push 1
push edi
push dword [esp + 0x24]
push dword [ebx + 0x60]
call dword [eax + 4]
test eax, eax
je 0x10003094
mov esi, dword [ebx + 0x60]
mov ecx, esi
call fcn.1000cb30
mov eax, dword [esi + 0x2c]
and eax, 0x1ff
or eax, 0
jne 0x10003094
mov eax, dword [esi + 0x24]
and eax, 0x1ff
or eax, 0
jne 0x10003094
xor ecx, ecx
lea eax, [esi + 0x34]
cmp dword [eax], 0
jne 0x10003094
inc ecx
add eax, 4
cmp ecx, 0x20
jl 0x10002f90
mov ecx, dword [ebx + 0x3c]
mov eax, 0xb4
cmp ecx, eax
jle 0x10002fbe
mov edx, dword [ebx + 0x60]
cmp byte [edx + eax], 0xdb
jne 0x10002fbc
inc eax
cmp eax, ecx
jl 0x10002fb1
cmp ecx, eax
jne 0x10003094
push 0x10021b20
push 0xb4
call fcn.100140a0
mov edx, eax
add esp, 8
test edx, edx
je 0x10003094
mov ecx, 0x2d
mov edi, edx
rep movsd dword es:[edi], dword [esi]
cmp dword [ebx + 0x4c], 0
jne 0x10003009
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Error:
call fcn.10001a70
push 0x1f8
jmp 0x10003120
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
cmp dword [eax + 0xc0], 0xffffffff
jne 0x10003024
cmp dword [eax + 0xc4], 0xffffffff
je 0x1000302d
cmp dword [eax + 0xb8], 0
jne 0x10003047
mov ecx, dword [esp + 0x14]
mov dword [eax + 0xc0], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0xc4], ecx
mov dword [eax + 0xb8], edx
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
add esi, 0xffffffff
mov edi, 1
adc edx, 0xffffffff
add dword [esp + 0x14], edi
mov ecx, esi
mov eax, dword [esp + 0x1c]
mov edi, dword [ebp + 0x18]
adc eax, 0
or ecx, edx
mov dword [esp + 0x18], edx
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], eax
jne 0x10002de2
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [ebx + 0x30]
push 0
push 0
push 1
mov eax, dword [ecx]
push edi
push dword [esp + 0x24]
push dword [ebx + 0x60]
call dword [eax + 4]
test eax, eax
je 0x1000317d
mov esi, dword [ebx + 0x60]
cmp dword [esi], 0x4a4e4c78
jne 0x1000317d
cmp dword [esi + 4], 0x12345678
jne 0x1000317d
push 0x10021b20
push 0x2c
call fcn.100140a0
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x1000317d
movups xmm0, xmmword [esi]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [ecx + 0x10], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [ecx + 0x20], xmm0
mov eax, dword [esi + 0x28]
mov dword [ecx + 0x28], eax
cmp dword [ebx + 0x4c], 0
jne 0x1000313a
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.Error:
call fcn.10001a70
push 0x21c
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push 0x10001cc0
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
jmp 0x10003047
mov eax, dword [ebx + 0x48]
mov eax, dword [eax + 4]
mov eax, dword [eax + 8]
cmp dword [eax + 0xd0], 0xffffffff
jne 0x10003155
cmp dword [eax + 0xd4], 0xffffffff
je 0x10003162
cmp dword [eax + 0xc8], 0
jne 0x10003047
mov edx, dword [esp + 0x14]
mov dword [eax + 0xd0], edx
mov dword [eax + 0xd4], edi
mov dword [eax + 0xc8], ecx
jmp 0x10003047
mov ecx, dword [ebx + 0x30]
xor edi, edi
push edi
push edi
push 1
push dword [esp + 0x28]
xor eax, eax
push dword [esp + 0x24]
mov dword [esp + 0x40], eax
mov eax, dword [ecx]
push dword [ebx + 0x60]
call dword [eax + 4]
test eax, eax
je 0x10003291
mov esi, dword [ebx + 0x60]
mov ecx, esi
call fcn.1000c520
cmp word [esi + 0xc], di
jne 0x10003291
mov cl, byte [esi + 8]
lea eax, [ecx + 1]
cmp al, 3
ja 0x10003291
test cl, cl
je 0x10003291
cmp cl, 2
je 0x10003291
cmp cl, 1
jne 0x100031e2
cmp byte [esi + 9], 0
jmp 0x100031eb
cmp cl, 0xff
jne 0x100031f1
cmp byte [esi + 9], 1
jne 0x10003291
push 0x10021b20
push 0x8000
call fcn.100143d7
add esp, 8
mov dword [esp + 0x20], eax
test eax, eax
je 0x10003291
mov eax, 0x8000
mov ecx, dword [ebx + 0x30]
cdq
idiv dword [ebx + 0x3c]
mov esi, dword [ecx]
push 0
cdq
push edx
push eax
push dword [esp + 0x28]
push dword [esp + 0x24]
push dword [esp + 0x34]
call dword [esi + 4]
mov eax, dword [ebx + 0x3c]
cmp eax, 0x8000
ja 0x10003285
nop dword [eax + eax]
mov ecx, dword [esp + 0x20]
movzx esi, ax
mov edx, esi
call fcn.1000e780
test eax, eax
mov eax, 1
jne 0x10003269
inc edi
mov ecx, edi
shl eax, cl
imul eax, dword [ebx + 0x3c]
cmp eax, 0x8000
jbe 0x10003240
jmp 0x10003285
push esi
push dword [esp + 0x24]
mov ecx, edi
push dword [esp + 0x24]
shl eax, cl
mov ecx, ebx
push dword [esp + 0x20]
mov dword [esp + 0x3c], eax
call fcn.10003c10
push dword [esp + 0x20]
call fcn.10014121
add esp, 4
mov edx, dword [esp + 0x18]
xor eax, eax
mov esi, dword [esp + 0x10]
cmp eax, edx
jg 0x100032a9
mov edi, dword [esp + 0x2c]
jl 0x100032ab
cmp edi, esi
jb 0x100032ab
mov edi, esi
test edi, edi
je 0x1000304f
sub esi, edi
sbb edx, eax
jmp 0x1000305a