Function at 0x10045c2f
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
mov eax, dword [0x1008a418]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x68], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x70], eax
xor eax, eax
push esi
push edi
lea edi, [esp + 0x58]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x10]
stosd dword es:[edi], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x2c], edx
stosd dword es:[edi], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x54], edx
stosd dword es:[edi], eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x7c], edx
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], edx
stosd dword es:[edi], eax
test ecx, ecx
jne 0x10045ca8
mov esi, 0x80004005
jmp 0x10046acb
and dword [ebp + 0xc], 1
jne 0x10045cbd
cmp dword [ecx + 8], edx
jne 0x10045cbd
mov esi, 0x80070057
jmp 0x10046acb
mov eax, dword [ebx]
mov edi, dword [esp + 0x1c]
mov dword [ebx], edx
mov dword [esp + 0x40], eax
mov eax, dword [ecx]
mov ecx, dword [edi + 4]
mov dword [esp + 0x34], eax
lea eax, [esp + 0x2c]
push eax
mov ecx, dword [ecx + 0xc]
call fcn.1003607a
mov esi, eax
test esi, esi
js 0x10046aba
mov esi, dword [esp + 0x2c]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [edi + 4]
mov edx, esi
mov dword [esp + 0x74], eax
call fcn.100340fd
test eax, eax
jne 0x10045d12
mov esi, 0x80004005
jmp 0x10046aba
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x10]
test dword [eax + 0x80], 0x110
je 0x10045d43
mov edx, esi
call fcn.100349a9
test eax, eax
jns 0x10045d43
mov ecx, dword [edi + 4]
mov edx, esi
call fcn.10034a95
mov esi, eax
test esi, esi
js 0x10046aba
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
cmp eax, 0xfff0102
jne 0x10045d82
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x10045d6b
mov esi, 0x8007000e
jmp 0x10046aba
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [edi], eax
mov dword [ebx], 1
jmp 0x10046a0c
xor esi, esi
inc esi
cmp dword [esi*4 + 0x10004f70], eax
je 0x1004648e
inc esi
cmp esi, 6
jb 0x10045d85
test eax, 0x1000
je 0x10045daf
cmp dword [ebp + 0xc], 0
jne 0x10045daf
mov esi, 0x80070057
jmp 0x10046aba
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x78]
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [esp + 0x20], esi
test esi, esi
je 0x10045d61
xor esi, esi
push esi
push esi
push esi
push dword [esp + 0x38]
mov edi, esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10045df6
mov esi, 0x80070057
jmp 0x10046a91
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x6c], esi
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 0x10]
cmp dword [eax + 0x24], esi
jbe 0x100468c6
mov eax, dword [ecx + 0x18]
push 1
push 0
mov esi, dword [eax + esi*8 + 4]
mov eax, esi
sub eax, dword [esp + 0x4c]
push eax
push dword [esp + 0x38]
mov dword [esp + 0x40], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10046484
push 0
lea eax, [esp + 0x40]
push eax
push 0x20
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10046484
cmp dword [esp + 0x3c], 0x20
jne 0x1004647a
mov ecx, dword [esp + 0x1c]
lea eax, [esi + 0x20]
mov edx, dword [esp + 0x6c]
lea esi, [esp + 0x80]
mov dword [esp + 0x44], eax
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + 0x18]
push dword [eax + edx*8]
mov eax, dword [ecx + 0x10]
mov edx, dword [esp + 0x34]
push 1
push dword [esp + 0x7c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x14]
call fcn.100352ac
test eax, eax
jne 0x10045ed3
mov dword [esp + 0x7c], 1
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x6c]
inc esi
mov dword [esp + 0x6c], esi
mov ecx, dword [edx + 4]
mov eax, dword [ecx + 0x10]
cmp esi, dword [eax + 0x24]
jb 0x10045e0d
jmp 0x100468c6
mov esi, dword [esp + 0x24]
cmp dword [esi + 4], 0xffe0003
jne 0x10045f29
cmp dword [esi], 4
jne 0x10045f29
cmp dword [esp + 0x84], 2
jne 0x10045ef4
push 8
pop ecx
jmp 0x10045f08
xor ecx, ecx
cmp dword [esp + 0x84], 3
setne cl
lea ecx, [ecx*2 + 4]
mov eax, dword [esi + 8]
mov edi, dword [esp + 0x10]
cmp dword [eax + 8], ecx
jne 0x10045eb2
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x88]
mov dword [ecx + edi*4], eax
inc edi
mov dword [esp + 0x10], edi
jmp 0x10045eb2
lea ecx, [esp + 0x48]
call fcn.10037062
push dword [esp + 0x94]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x48], eax
test eax, eax
je 0x10046470
push 0
lea ecx, [esp + 0x40]
push ecx
push dword [esp + 0x9c]
push eax
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10046466
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0x94]
jne 0x1004647a
add dword [esp + 0x44], eax
cmp dword [ebp + 0xc], 0
mov edi, dword [esp + 0x34]
je 0x10045f9b
cmp edi, 4
je 0x10045f9b
cmp edi, 5
jne 0x10046452
mov edx, dword [esi + 4]
cmp dx, 0x48
jne 0x10045fb2
cmp edi, 4
je 0x10045fb2
cmp edi, 5
jne 0x10046452
xor eax, eax
xor ecx, ecx
cmp dword [esp + 0x8c], eax
jbe 0x10045fd7
mov esi, dword [esp + 0x48]
cmp dword [esi + eax*4], edx
je 0x10045fd4
inc eax
cmp eax, dword [esp + 0x8c]
jb 0x10045fc3
jmp 0x10045fd7
xor ecx, ecx
inc ecx
cmp dword [ebp + 0xc], 0
je 0x10046000
cmp edi, 4
jne 0x10045fe6
test ecx, ecx
jne 0x10045ff7
cmp edi, 5
jne 0x10045eae
test ecx, ecx
jne 0x10045eae
mov edi, dword [esp + 0x10]
jmp 0x10045f14
test ecx, ecx
je 0x10045eae
mov eax, dword [esp + 0x54]
test eax, eax
je 0x10046017
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [esp + 0x9c]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x30], esi
test esi, esi
je 0x1004645c
push 0
lea eax, [esp + 0x40]
push eax
push dword [esp + 0xa4]
push esi
push dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10046466
mov edx, dword [esp + 0x3c]
cmp edx, dword [esp + 0x9c]
jne 0x1004647a
push dword [esp + 0x8c]
mov ecx, esi
call fcn.10035d6d
test eax, eax
je 0x1004647a
mov eax, dword [esp + 0x44]
mov edi, esi
add eax, dword [esp + 0x3c]
xor esi, esi
and dword [esp + 0x38], esi
mov dword [esp + 0x44], eax
mov dword [esp + 0x28], esi
cmp dword [esp + 0x8c], esi
jbe 0x10046401
mov eax, dword [edi]
mov ecx, eax
add edi, 4
mov dword [esp + 0x58], eax
and ecx, 0x1000
je 0x100460bb
add edi, 4
mov edx, dword [esp + 0x24]
mov esi, dword [edi]
add edi, 4
cmp eax, dword [edx + 4]
je 0x100460d5
lea edi, [edi + esi*2]
mov esi, dword [esp + 0x28]
jmp 0x100463eb
test ecx, ecx
jne 0x100460c9
movzx eax, ax
cmp eax, 0x1f
ja 0x1004610a
je 0x10046140
cmp eax, 2
jb 0x100460c9
cmp eax, 4
jbe 0x10046101
cmp eax, 5
jbe 0x100460c9
cmp eax, 7
jbe 0x10046101
cmp eax, 0xb
je 0x10046101
cmp eax, 0x14
jne 0x100460c9
cmp esi, 2
jae 0x10046158
mov eax, esi
jmp 0x1004615b
cmp eax, 0x40
je 0x10046101
cmp eax, 0x48
je 0x10046140
cmp eax, 0x102
jne 0x100460c9
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x64], eax
test eax, eax
je 0x10046470
push esi
push edi
push eax
call sub.msvcrt.dll_memcpy
mov ecx, esi
mov dword [esp + 0x6c], ecx
jmp 0x1004616b
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x60], eax
test eax, eax
je 0x10046470
push esi
jmp 0x10046160
push 2
pop eax
push eax
lea eax, [esp + 0x64]
push edi
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x6c]
movzx eax, word [esp + 0x64]
lea edi, [edi + esi*2]
add esp, 0xc
mov dword [esp + 0x4c], edi
cmp eax, 0xb
ja 0x10046259
je 0x10046249
dec eax
sub eax, 1
je 0x10046237
sub eax, 1
je 0x10046229
sub eax, 1
je 0x10046200
sub eax, 1
je 0x100461b4
sub eax, 1
je 0x100461ca
sub eax, 1
jne 0x1004637b
mov eax, dword [esp + 0x24]
fld qword [esp + 0x60]
mov eax, dword [eax + 8]
fsub qword [eax + 8]
jmp 0x1004620e
fstp st(1)
fstp st(0)
jmp 0x100461e7
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 8]
mov eax, dword [esp + 0x64]
sub eax, dword [edx + 0xc]
js 0x100461e7
test eax, eax
jg 0x1004633c
cmp ecx, dword [edx + 8]
jae 0x100461f3
or esi, 0xffffffff
mov dword [esp + 0x18], esi
jmp 0x100462e2
sub ecx, dword [edx + 8]
xor eax, eax
cmp eax, ecx
sbb esi, esi
neg esi
jmp 0x100461ea
mov eax, dword [esp + 0x24]
fld dword [esp + 0x60]
mov eax, dword [eax + 8]
fsub dword [eax + 8]
fldz
fcom st(1)
fnstsw ax
test ah, 0x41
je 0x100461c4
fucompp
xor esi, esi
fnstsw ax
test ah, 0x44
jnp 0x100461ea
jmp 0x1004633e
mov eax, dword [esp + 0x24]
mov esi, ecx
mov eax, dword [eax + 8]
sub esi, dword [eax + 8]
jmp 0x100461ea
mov eax, dword [esp + 0x24]
movsx esi, cx
mov eax, dword [eax + 8]
movsx eax, word [eax + 8]
sub esi, eax
jmp 0x100461ea
mov eax, dword [esp + 0x24]
movzx esi, cx
mov eax, dword [eax + 8]
movzx eax, word [eax + 8]
jmp 0x10046245
cmp eax, 0x14
je 0x100461ca
cmp eax, 0x1f
je 0x10046368
cmp eax, 0x40
je 0x1004634b
cmp eax, 0x48
je 0x10046322
cmp eax, 0x102
jne 0x1004637b
mov eax, dword [esp + 0x24]
mov edi, dword [eax + 8]
mov dword [esp + 0x50], edi
cmp ecx, dword [edi + 8]
jb 0x1004629b
mov ecx, dword [edi + 8]
xor esi, esi
xor edx, edx
mov dword [esp + 0x18], esi
test ecx, ecx
je 0x100462c5
mov edi, dword [edi + 0xc]
mov esi, dword [esp + 0x64]
sub edi, esi
mov al, byte [esi]
cmp al, byte [edi + esi]
jne 0x100462bd
inc edx
inc esi
cmp edx, ecx
jb 0x100462b0
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x18]
cmp edx, ecx
je 0x100462de
mov eax, dword [edi + 0xc]
mov ecx, dword [esp + 0x64]
movzx eax, byte [eax + edx]
movzx esi, byte [ecx + edx]
sub esi, eax
mov dword [esp + 0x18], esi
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x34]
sub eax, 0
je 0x100463ba
sub eax, 1
je 0x100463b4
sub eax, 1
je 0x100463ae
sub eax, 1
je 0x100463a8
sub eax, 1
je 0x10046384
sub eax, 1
jne 0x100463be
test esi, esi
jne 0x100463be
jmp 0x1004639f
mov eax, dword [esp + 0x24]
xor edx, edx
mov eax, dword [eax + 8]
mov esi, dword [eax + 8]
mov eax, dword [ecx + edx*4]
cmp eax, dword [esi + edx*4]
jne 0x10046344
inc edx
cmp edx, 4
jne 0x1004632e
xor esi, esi
inc esi
jmp 0x100461ea
xor esi, esi
jmp 0x100461ea
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
add eax, 8
push eax
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
mov esi, eax
jmp 0x100461ea
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 8]
push dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x10046361
mov esi, dword [esp + 0x18]
jmp 0x100462e2
test esi, esi
jne 0x100463be
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x88]
mov dword [edx + ecx*4], eax
inc ecx
mov dword [esp + 0x10], ecx
xor esi, esi
inc esi
mov dword [esp + 0x28], esi
jmp 0x100463c2
test esi, esi
js 0x100463be
jmp 0x10046388
test esi, esi
jle 0x100463be
jmp 0x10046388
test esi, esi
jg 0x100463be
jmp 0x10046388
test esi, esi
js 0x10046388
mov esi, dword [esp + 0x28]
movzx eax, word [esp + 0x58]
cmp eax, 0x1f
je 0x100463de
cmp eax, 0x48
je 0x100463de
cmp eax, 0x102
jne 0x100463e7
lea ecx, [esp + 0x64]
jmp 0x100463e2
lea ecx, [esp + 0x60]
call fcn.10037062
test esi, esi
jne 0x10046401
mov edx, dword [esp + 0x38]
inc edx
mov dword [esp + 0x38], edx
cmp edx, dword [esp + 0x8c]
jb 0x100460a5
cmp dword [esp + 0x34], 5
mov edi, dword [esp + 0x10]
jne 0x10046423
test esi, esi
jne 0x10046423
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x88]
mov dword [ecx + edi*4], eax
inc edi
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x40]
cmp edi, eax
jne 0x10046433
test eax, eax
jne 0x100468c2
lea ecx, [esp + 0x30]
call fcn.10037062
lea ecx, [esp + 0x48]
call fcn.10037062
mov eax, dword [esp + 0x30]
mov dword [esp + 0x54], eax
jmp 0x10045eb2
mov esi, 0x80070057
jmp 0x10046a73
mov esi, 0x8007000e
jmp 0x10046a82
mov esi, 0x80040116
jmp 0x10046a73
mov esi, 0x8007000e
jmp 0x10046a73
mov esi, 0x8004011b
jmp 0x10046a73
mov esi, 0x80004005
jmp 0x10046a73
mov eax, dword [edi + 4]
mov ebx, esi
add ebx, ebx
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ebx*8 + 0x24]
mov dword [esp + 0x4c], edi
test edi, edi
jne 0x100464ab
xor esi, esi
jmp 0x10046aba
cmp dword [ebp + 0xc], 0
je 0x1004653e
cmp dword [ecx], 5
jne 0x100464c9
xor edi, edi
and dword [esp + 0x20], edi
mov dword [esp + 0x10], edi
jmp 0x100468be
cmp dword [ecx], 4
jne 0x100468ba
mov eax, edi
mov dword [esp + 0x10], edi
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [esp + 0x20], eax
test eax, eax
je 0x10045d61
mov ebx, dword [esp + 0x1c]
mov edx, esi
push dword [esp + 0x2c]
mov ecx, dword [ebx + 4]
call fcn.10033c21
test eax, eax
jne 0x10046510
mov esi, 0x80004005
jmp 0x10046a95
xor ecx, ecx
test edi, edi
je 0x10046531
mov esi, dword [esp + 0x20]
xor edx, edx
mov eax, dword [ebx + 4]
lea edx, [edx + 0x44]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edx - 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x1004651c
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
jmp 0x100468c2
mov eax, dword [ecx + 8]
lea ecx, [esp + 0xa0]
push dword [eax + 8]
push 0x21
pop edx
call fcn.1000b82d
push dword [esp + 0x2c]
mov edx, esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esi + 4]
call fcn.10033c21
test eax, eax
je 0x10045d08
mov ecx, dword [esi + 4]
lea eax, [esp + 0x30]
push eax
lea edx, [esp + 0xa4]
mov eax, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x14]
push dword [eax + ebx*8 + 0x24]
call fcn.10033987
mov ecx, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x50], ecx
mov esi, eax
test ecx, ecx
je 0x1004666c
dec esi
mov dword [esp + 0x38], esi
cmp esi, 0xffffffff
je 0x100465e0
mov edi, dword [esp + 0x1c]
imul ebx, esi, 0x44
lea eax, [esp + 0xa0]
push eax
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x14]
add eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100465d4
dec esi
sub ebx, 0x44
cmp esi, 0xffffffff
jne 0x100465b0
mov edi, dword [esp + 0x4c]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], esi
lea ebx, [eax + 1]
cmp ebx, edi
je 0x10046615
imul esi, ebx, 0x44
lea eax, [esp + 0xa0]
push eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
add eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10046611
inc ebx
add esi, 0x44
cmp ebx, edi
jne 0x100465ea
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
inc esi
mov edx, ebx
dec ebx
sub eax, 0
je 0x10046664
sub eax, 1
je 0x1004665c
sub eax, 1
je 0x10046655
sub eax, 1
je 0x1004664f
sub eax, 1
je 0x10046648
mov ecx, dword [esp + 0x14]
sub eax, 1
jne 0x100466a6
mov eax, edi
sub eax, ebx
dec eax
add eax, esi
jmp 0x100466a4
mov eax, ebx
sub eax, esi
inc eax
jmp 0x100466a0
mov eax, edi
sub eax, esi
jmp 0x100466a0
mov eax, edi
sub eax, ebx
dec eax
jmp 0x100466a0
mov ecx, dword [esp + 0x14]
mov dword [ecx], edx
jmp 0x100466a6
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
jmp 0x100466a6
mov ecx, dword [esp + 0x34]
cmp ecx, 1
jbe 0x1004669e
cmp ecx, 3
jbe 0x1004669a
cmp ecx, 4
je 0x1004668e
cmp ecx, 5
mov ebx, esi
mov ecx, dword [esp + 0x14]
jne 0x100466a6
mov dword [ecx], edi
jmp 0x100466a6
mov ecx, dword [esp + 0x14]
and dword [ecx], 0
jmp 0x100464a4
mov eax, edi
sub eax, esi
mov ebx, esi
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
mov eax, dword [ecx]
test eax, eax
je 0x100464a4
mov edx, dword [esp + 0x40]
cmp eax, edx
jbe 0x100466c0
test edx, edx
je 0x100466c0
mov dword [ecx], edx
mov eax, edx
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
mov dword [esp + 0x74], edi
test edi, edi
je 0x10045d61
cmp dword [esp + 0x50], 0
mov eax, dword [esp + 0x34]
je 0x10046832
cmp eax, 1
jbe 0x10046807
cmp eax, 2
je 0x100467d6
cmp eax, 3
je 0x100467a7
cmp eax, 4
je 0x10046778
cmp eax, 5
jne 0x10046846
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x40]
cmp ecx, eax
jbe 0x10046724
test eax, eax
je 0x10046724
mov ecx, eax
xor edx, edx
test ecx, ecx
je 0x10046846
xor eax, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x40], eax
cmp edx, esi
jb 0x10046740
cmp edx, ebx
jbe 0x10046763
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edi + 0x40]
mov edi, dword [esp + 0x30]
mov dword [edi], eax
add edi, 4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x30], edi
inc edx
add eax, 0x44
mov dword [esp + 0x40], eax
cmp edx, ecx
jb 0x10046738
mov edi, dword [esp + 0x74]
jmp 0x10046846
mov ebx, dword [esp + 0x14]
xor ecx, ecx
cmp dword [ebx], ecx
jbe 0x1004689d
imul edx, esi, 0x44
mov eax, dword [esp + 0x1c]
lea edx, [edx + 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edx - 4]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, dword [ebx]
jb 0x10046789
jmp 0x1004689d
mov ebx, dword [esp + 0x14]
xor ecx, ecx
cmp dword [ebx], ecx
jbe 0x1004689d
imul edx, esi, 0x44
mov eax, dword [esp + 0x1c]
lea edx, [edx + 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edx - 4]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, dword [ebx]
jb 0x100467b8
jmp 0x1004689d
mov eax, dword [esp + 0x14]
xor ecx, ecx
cmp dword [eax], ecx
jbe 0x1004689b
imul edx, ebx, 0x44
mov ebx, eax
mov eax, dword [esp + 0x1c]
lea edx, [edx + 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edx + 0x40]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, dword [ebx]
jb 0x100467e9
jmp 0x1004689d
mov ebx, dword [esp + 0x14]
xor ecx, ecx
cmp dword [ebx], ecx
jbe 0x1004689d
xor edx, edx
mov eax, dword [esp + 0x1c]
lea edx, [edx + 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edx - 4]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, dword [ebx]
jb 0x10046817
jmp 0x1004689d
cmp eax, 1
jbe 0x10046874
cmp eax, 3
jbe 0x1004684c
cmp eax, 4
je 0x10046846
cmp eax, 5
je 0x10046874
mov ebx, dword [esp + 0x14]
jmp 0x1004689d
mov ebx, dword [esp + 0x14]
xor ecx, ecx
cmp dword [ebx], ecx
jbe 0x1004689d
imul edx, esi, 0x44
mov eax, dword [esp + 0x1c]
lea edx, [edx + 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edx - 4]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, dword [ebx]
jb 0x10046859
jmp 0x1004689d
mov ebx, dword [esp + 0x14]
xor ecx, ecx
cmp dword [ebx], ecx
jbe 0x1004689d
xor edx, edx
mov eax, dword [esp + 0x1c]
lea edx, [edx + 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x14]
mov eax, dword [eax + edx - 4]
mov dword [edi + ecx*4], eax
inc ecx
cmp ecx, dword [ebx]
jb 0x10046880
jmp 0x1004689d
mov ebx, eax
cmp dword [esp + 0x70], 0
je 0x10046a0c
mov eax, dword [ebx]
and dword [ebx], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], edi
jmp 0x10046535
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x70]
test eax, eax
je 0x100469bf
mov ecx, dword [esp + 0x70]
mov eax, dword [eax + 4]
cmp dword [ecx], 0
jne 0x10046927
test eax, eax
jne 0x100469bf
xor esi, esi
test edi, edi
je 0x100469bf
mov ebx, dword [esp + 0x20]
mov edx, dword [edx + 4]
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x2c]
and dword [esp + 0x50], 0
push eax
push dword [ebx + esi*4]
call fcn.10042192
test eax, eax
je 0x10046915
or dword [ebx + esi*4], 0xffffffff
mov edx, dword [esp + 0x1c]
inc esi
cmp esi, edi
jb 0x100468f4
mov ebx, dword [esp + 0x14]
jmp 0x100469bf
test eax, eax
je 0x100469bf
mov edx, dword [edx + 4]
lea eax, [esp + 0x30]
and dword [esp + 0x30], 0
and dword [esp + 0x38], 0
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.100432fe
mov esi, dword [esp + 0x30]
test eax, eax
js 0x100469b4
mov edx, dword [esp + 0x38]
test edx, edx
je 0x1004699a
test esi, esi
je 0x1004699a
xor eax, eax
test edi, edi
je 0x100469b4
mov ebx, dword [esp + 0x20]
xor ecx, ecx
test edx, edx
je 0x10046985
mov edi, dword [ebx + eax*4]
cmp edi, dword [esi + ecx*4]
je 0x1004698b
inc ecx
cmp ecx, edx
jb 0x10046977
mov edi, dword [esp + 0x10]
or dword [ebx + eax*4], 0xffffffff
jmp 0x1004698f
mov edi, dword [esp + 0x10]
inc eax
cmp eax, edi
jb 0x1004696e
mov ebx, dword [esp + 0x14]
jmp 0x100469b4
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x100469b4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [esp + 0x20], 0
test esi, esi
je 0x100469bf
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
and dword [ebx], 0
xor edi, edi
cmp dword [esp + 0x20], edi
je 0x10046a0c
mov esi, dword [esp + 0x10]
test esi, esi
je 0x10046a0c
mov eax, esi
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10046470
xor ecx, ecx
test esi, esi
je 0x10046a0c
mov eax, dword [esp + 0x20]
mov edx, dword [eax + ecx*4]
cmp edx, 0xffffffff
je 0x10046a07
mov eax, dword [ebx]
mov dword [edi + eax*4], edx
inc dword [ebx]
mov eax, dword [esp + 0x20]
inc ecx
cmp ecx, esi
jb 0x100469f4
xor esi, esi
test edi, edi
je 0x10046a73
mov eax, dword [ebx]
test eax, eax
je 0x10046a6a
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x78]
mov dword [ecx], eax
test eax, eax
je 0x10046a68
cmp dword [ebx], esi
jbe 0x10046a6a
push 4
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edx, dword [esp + 0x78]
mov ecx, dword [edx]
mov dword [ecx + esi*8 + 4], eax
mov eax, dword [edx]
cmp dword [eax + esi*8 + 4], 0
je 0x10046a61
mov dword [eax + esi*8], 4
mov eax, dword [edx]
mov ecx, dword [eax + esi*8 + 4]
mov eax, dword [edi + esi*4]
mov dword [ecx], eax
inc esi
cmp esi, dword [ebx]
jb 0x10046a32
jmp 0x10046a6a
and dword [ebx], esi
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
mov eax, dword [esp + 0x54]
test eax, eax
je 0x10046a82
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x48]
test eax, eax
je 0x10046a91
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10046aa4
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x7c], 0
je 0x10046aba
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x2c]
mov ecx, dword [ecx + 0x10]
call fcn.10035334
cmp dword [esp + 0x2c], 0
je 0x10046acb
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xec]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10087900
mov esp, ebp
pop ebp
ret 0x14