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

Disassembly:
sub esp, 0x34
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
push edi
cmp dword [ebx + 0x7c], 1
jle 0x100402b9
mov eax, dword [ebx + 0x78]
push esi
test eax, eax
je 0x100400ad
imul edi, eax, 0x18
lea edx, [ebx + 0xc]
mov esi, ebx
add edi, dword [ebx + 0x88]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
imul ecx, dword [ebx + 0x78], 0x18
mov esi, edx
mov edi, dword [ebx + 0x88]
add ecx, 0xc
add edi, ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x88]
mov edi, ebx
mov dword [ebx + 0x78], ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0x88]
mov edi, edx
add esi, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [edx]
mov eax, dword [ebx + 0x14]
lea eax, [eax + ecx*2]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx]
test eax, eax
je 0x100400a6
mov edx, dword [ebx + 8]
imul ecx, eax, 0x28
add edx, 0xffffffd8
add edx, ecx
je 0x100400a6
lea esi, [ebx + 0x60]
cmp dword [edx + 0x1c], ebp
jne 0x10040094
push 6
pop ecx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
jmp 0x100400ad
mov ecx, ebp
mov eax, dword [edx + ecx*4]
cmp eax, dword [esi + ecx*4]
jne 0x100400a6
inc ecx
cmp ecx, 6
jne 0x10040096
jmp 0x100400ad
mov ecx, ebx
call fcn.1003fb05
mov ecx, ebx
call fcn.10040383
mov eax, dword [ebx + 0x7c]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
test eax, eax
jle 0x100400df
cmp dword [ebx], ebp
jle 0x100400df
mov ecx, ebx
call fcn.10025538
mov edi, eax
mov eax, dword [ebx + 0x7c]
test edi, edi
je 0x100400e1
mov ebp, dword [edi + 0x1c]
add ebp, dword [edi + 0x18]
jmp 0x100400e1
mov edi, ebp
xor ecx, ecx
inc ecx
mov dword [esp + 0x18], ecx
cmp eax, ecx
jle 0x100401c2
lea eax, [ebx + 0x80]
push ecx
mov ecx, eax
call fcn.1002900b
mov esi, eax
cmp dword [esi], 0
jle 0x10040177
mov ecx, esi
call fcn.10025538
cmp dword [eax + 0x1c], 0
jne 0x10040126
mov ecx, esi
call fcn.10025538
cmp dword [eax + 0x20], 0
jne 0x10040126
mov ecx, esi
call fcn.10025d28
cmp dword [esi], 0
jle 0x10040177
test edi, edi
je 0x10040169
push 0
mov ecx, esi
call fcn.1001c067
mov edx, eax
xor ecx, ecx
mov eax, dword [edi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x10040169
inc ecx
cmp ecx, 6
jne 0x1004013c
cmp dword [edi + 0x20], 0
jne 0x10040169
cmp dword [edx + 0x20], 0
jne 0x10040169
mov eax, dword [edx + 0x1c]
mov ecx, esi
add dword [edi + 0x1c], eax
push dword [esi + 8]
add ebp, dword [edx + 0x1c]
call fcn.100462c2
cmp dword [esi], 0
jle 0x10040177
mov ecx, esi
call fcn.10025538
mov edi, eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
add eax, dword [esi]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
add eax, dword [esi + 0xc]
mov dword [esp + 0x10], eax
cmp dword [esi], ecx
jle 0x100401aa
mov edx, dword [esi + 8]
xor eax, eax
mov dword [eax + edx + 0x18], ebp
lea eax, [eax + 0x28]
mov edx, dword [esi + 8]
add ebp, dword [eax + edx - 0xc]
inc ecx
cmp ecx, dword [esi]
jl 0x10040197
mov ecx, dword [esp + 0x18]
lea eax, [ebx + 0x80]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [ebx + 0x7c]
jl 0x100400f6
mov eax, dword [ebx]
mov ecx, ebx
add eax, dword [esp + 0x14]
push eax
call fcn.1002648f
lea esi, [ebx + 0xc]
mov eax, dword [esi]
mov ecx, esi
add eax, dword [esp + 0x10]
push eax
call fcn.10026372
mov eax, dword [ebx]
sub eax, dword [esp + 0x14]
mov ecx, dword [esi]
sub ecx, dword [esp + 0x10]
imul ebp, eax, 0x28
mov eax, dword [ebx + 0x14]
add ebp, dword [ebx + 8]
lea edi, [eax + ecx*2]
xor eax, eax
mov dword [esp + 0x14], edi
inc eax
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x7c], eax
jle 0x10040263
push eax
lea ecx, [ebx + 0x80]
call fcn.1002900b
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x1004022f
imul esi, eax, 0x28
push esi
push dword [edi + 8]
push ebp
call fcn.1009f330
add esp, 0xc
add ebp, esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x10040251
add esi, esi
push esi
push dword [edi + 0x14]
mov edi, dword [esp + 0x1c]
push edi
call fcn.1009f330
add esp, 0xc
add edi, esi
mov dword [esp + 0x14], edi
jmp 0x10040255
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [ebx + 0x7c]
jl 0x10040209
xor ebp, ebp
mov dword [ebx + 0x38], edi
cmp dword [ebx], ebp
je 0x10040278
mov ecx, ebx
call fcn.10025538
cmp dword [eax + 0x20], ebp
je 0x1004027f
mov ecx, ebx
call fcn.1003fb05
imul edx, dword [ebx], 0x28
lea esi, [ebx + 0x60]
add edx, dword [ebx + 8]
cmp dword [edx - 0xc], ebp
jne 0x10040297
push 6
pop ecx
lea edi, [edx - 0x28]
rep movsd dword es:[edi], dword [esi]
jmp 0x100402b1
mov ecx, ebp
mov eax, dword [edx + ecx*4 - 0x28]
cmp eax, dword [esi + ecx*4]
jne 0x100402aa
inc ecx
cmp ecx, 6
jne 0x10040299
jmp 0x100402b1
mov ecx, ebx
call fcn.1003fb05
mov dword [ebx + 0x7c], 1
pop esi
push ebp
mov ecx, ebx
call fcn.1002648f
push ebp
lea ecx, [ebx + 0xc]
call fcn.10026372
push ebp
lea ecx, [ebx + 0x18]
call fcn.100464b5
mov eax, dword [ebx + 0x2c]
lea edi, [ebx + 0x60]
push 6
pop ecx
push ebp
mov eax, dword [eax + 0x28]
mov dword [ebx + 0x24], eax
xor eax, eax
rep stosd dword es:[edi], eax
lea ecx, [ebx + 0x3c]
mov dword [ebx + 0x28], ebp
mov dword [ebx + 0x34], ebp
mov dword [ebx + 0x38], ebp
call fcn.100263fa
push ebp
lea ecx, [ebx + 0x48]
call fcn.10026394
push ebp
lea ecx, [ebx + 0x54]
call fcn.10026524
push 0xa
pop ecx
xor eax, eax
mov dword [ebx + 0x78], ebp
lea edi, [esp + 0x18]
mov dword [ebx + 0x7c], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.10025e06
pop edi
pop ebp
mov dword [ebx + 0x8c], 0x3f800000
pop ebx
add esp, 0x34
ret