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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101126b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10162378]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [0x10167324]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [ebp - 0x10], 6
mov eax, dword [ebx + 0x2c]
test eax, eax
je 0x10007a0c
cmp byte [ebx + 1], 0
je 0x10007a0c
mov byte [eax + 0x10], 0
mov esi, dword [ebx + 0x2c]
mov dword [ebp - 0x20], esi
test esi, esi
je 0x10007a0c
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.1006e9e0
mov ecx, esi
call fcn.1006ebf0
lea ecx, [esi + 0x3c]
xor esi, esi
mov dword [ebp - 0x14], ecx
cmp dword [ecx], esi
jle 0x10007981
mov eax, dword [ecx + 8]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1000797c
mov ecx, eax
call fcn.10071470
mov ecx, dword [0x10167324]
test ecx, ecx
je 0x10007971
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x18], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x10007967
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x18]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push dword [ebp - 0x1c]
call edi
mov ecx, dword [ebp - 0x14]
add esp, 4
inc esi
cmp esi, dword [ecx]
jl 0x10007903
call fcn.10001070
mov esi, dword [ebp - 0x20]
lea ecx, [esi + 0x54]
mov byte [esi + 0x18], 0
call fcn.10034dc0
lea ecx, [esi + 0x48]
call fcn.10034dc0
mov ecx, dword [ebp - 0x14]
call fcn.10034dc0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x10167324]
test ecx, ecx
je 0x10007a06
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x100079fc
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push esi
call edi
add esp, 4
lea ecx, [ebx + 0x3e00]
mov dword [ebx + 0x2c], 0
call fcn.10001070
cmp byte [ebx], 0
je 0x10008445
cmp byte [ebx + 0x5e94], 0
je 0x10007a3c
mov ecx, dword [ebx + 0x20]
test ecx, ecx
je 0x10007a3c
call fcn.1001eb30
mov eax, dword [0x10167324]
mov esi, dword [eax + 0x4ae8]
mov eax, dword [eax + 0x4ae0]
lea eax, [esi + eax*4]
cmp esi, eax
je 0x10007a6a
mov edi, eax
mov ecx, dword [esi]
call fcn.10020e70
add esi, 4
cmp esi, edi
jne 0x10007a56
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor esi, esi
cmp dword [ebx + 0x5e68], esi
jle 0x10007b07
nop dword [eax + eax]
mov eax, dword [ebx + 0x5e70]
mov eax, dword [eax + esi*8 + 4]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10007afa
mov ecx, eax
call fcn.10022520
mov ecx, dword [0x10167324]
test ecx, ecx
je 0x10007af2
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x10007ae8
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push dword [ebp - 0x1c]
call edi
add esp, 4
inc esi
cmp esi, dword [ebx + 0x5e68]
jl 0x10007a80
mov eax, dword [ebx + 0x5ecc]
mov esi, dword [ebx + 0x5ed4]
lea eax, [eax + eax*4]
lea eax, [esi + eax*4]
mov dword [ebp - 0x20], eax
cmp esi, eax
je 0x10007b3a
cmp dword [esi + 4], 6
jne 0x10007b33
mov eax, dword [esi + 0xc]
push esi
push ebx
call eax
mov eax, dword [ebp - 0x20]
add esp, 8
add esi, 0x14
cmp esi, eax
jne 0x10007b20
lea ecx, [ebx + 0x401c]
xor esi, esi
cmp dword [ecx], esi
jle 0x10007bd5
nop word [eax + eax]
mov eax, dword [ecx + 8]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10007bcc
mov ecx, eax
call fcn.10008d30
mov ecx, dword [0x10167324]
test ecx, ecx
je 0x10007bbe
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x10007bb4
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push dword [ebp - 0x1c]
call edi
add esp, 4
lea ecx, [ebx + 0x401c]
inc esi
cmp esi, dword [ecx]
jl 0x10007b50
call fcn.10001070
lea ecx, [ebx + 0x4028]
call fcn.10001070
lea ecx, [ebx + 0x4034]
call fcn.10001070
mov dword [ebx + 0x4064], 0
mov esi, dword [ebx + 0x4048]
test esi, esi
je 0x10007c86
mov ecx, dword [0x10167324]
mov dword [ebx + 0x4044], 0
mov dword [ebx + 0x4040], 0
test ecx, ecx
je 0x10007c76
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x10007c6c
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push esi
call edi
add esp, 4
mov dword [ebx + 0x4048], 0
lea ecx, [ebx + 0x404c]
call fcn.10001070
or eax, 0xffffffff
mov dword [ebx + 0x4b34], 0
mov dword [ebx + 0x406c], 0
lea edi, [ebx + 0x4824]
mov dword [ebx + 0x4068], 0
mov ecx, 0x4d
mov dword [ebx + 0x40e0], 0
mov dword [ebx + 0x40cc], 0
mov dword [ebx + 0x4070], 0
rep stosd dword es:[edi], eax
lea ecx, [ebx + 0x4958]
call fcn.10001070
lea ecx, [ebx + 0x4964]
call fcn.10001070
mov esi, dword [ebx + 0x4a78]
test esi, esi
je 0x10007d78
mov ecx, dword [0x10167324]
mov dword [ebx + 0x4a74], 0
mov dword [ebx + 0x4a70], 0
test ecx, ecx
je 0x10007d60
movsx edx, word [ecx + 0x5fa4]
lea eax, [ecx + 0x5fa8]
mov edi, dword [ecx + 0x3fe0]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x10007d56
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call edi
add esp, 4
mov dword [ebx + 0x4a78], 0
jmp 0x10007d7e
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [ebx + 0x4a84]
test esi, esi
je 0x10007e0a
mov ecx, dword [0x10167324]
mov dword [ebx + 0x4a80], 0
mov dword [ebx + 0x4a7c], 0
test ecx, ecx
je 0x10007dfa
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x10007df0
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push esi
call edi
add esp, 4
mov dword [ebx + 0x4a84], 0
lea ecx, [ebx + 0x4a88]
call fcn.10001070
lea ecx, [ebx + 0x4ab8]
call fcn.10001070
lea ecx, [ebx + 0x4ac4]
call fcn.10001070
mov esi, dword [ebx + 0x4ad8]
test esi, esi
je 0x10007eb7
mov ecx, dword [0x10167324]
mov dword [ebx + 0x4ad4], 0
mov dword [ebx + 0x4ad0], 0
test ecx, ecx
je 0x10007ea7
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x10007e9d
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push esi
call edi
add esp, 4
mov dword [ebx + 0x4ad8], 0
xor ecx, ecx
mov dword [ebx + 0x4af8], 0
mov dword [ebx + 0x4af4], 0
mov dword [ebx + 0x4af0], 0
mov dword [ebp - 0x14], ecx
cmp dword [ebx + 0x4ae0], ecx
jle 0x10007fb0
nop word [eax + eax]
mov eax, dword [ebx + 0x4ae8]
mov esi, dword [eax + ecx*4]
test esi, esi
je 0x10007fa0
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0x78]
test ecx, ecx
je 0x10007f14
call fcn.10036520
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x10007f20
call fcn.10036520
lea ecx, [esi + 0xc0]
call fcn.10034dc0
lea ecx, [esi + 0x90]
call fcn.10034dc0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x10167324]
test ecx, ecx
je 0x10007f97
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x10007f8d
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push esi
call edi
mov ecx, dword [ebp - 0x14]
add esp, 4
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebx + 0x4ae0]
jl 0x10007ef0
mov esi, dword [ebx + 0x4ae8]
test esi, esi
je 0x10008038
mov ecx, dword [0x10167324]
mov dword [ebx + 0x4ae4], 0
mov dword [ebx + 0x4ae0], 0
test ecx, ecx
je 0x10008028
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x1000801e
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push esi
call edi
add esp, 4
mov dword [ebx + 0x4ae8], 0
lea ecx, [ebx + 0x4e04]
call fcn.10035130
mov esi, dword [ebx + 0x4e2c]
test esi, esi
je 0x100080cb
mov ecx, dword [0x10167324]
mov dword [ebx + 0x4e28], 0
mov dword [ebx + 0x4e24], 0
test ecx, ecx
je 0x100080bb
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x100080b1
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push esi
call edi
add esp, 4
mov dword [ebx + 0x4e2c], 0
mov esi, dword [ebx + 0x4e38]
test esi, esi
je 0x10008153
mov ecx, dword [0x10167324]
mov dword [ebx + 0x4e34], 0
mov dword [ebx + 0x4e30], 0
test ecx, ecx
je 0x10008143
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x10008139
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push esi
call edi
add esp, 4
mov dword [ebx + 0x4e38], 0
xor esi, esi
cmp dword [ebx + 0x4da8], esi
jle 0x1000817f
xor edi, edi
nop
mov ecx, dword [ebx + 0x4db0]
add ecx, edi
call fcn.100050f0
inc esi
add edi, 0x1c
cmp esi, dword [ebx + 0x4da8]
jl 0x10008160
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [ebx + 0x4db0]
test esi, esi
je 0x1000820b
mov ecx, dword [0x10167324]
mov dword [ebx + 0x4dac], 0
mov dword [ebx + 0x4da8], 0
test ecx, ecx
je 0x100081fb
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x100081f1
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push esi
call edi
add esp, 4
mov dword [ebx + 0x4db0], 0
lea ecx, [ebx + 0x4dc8]
call fcn.10035260
cmp dword [ebx + 0x4dbc], 0
mov dword [ebp - 0x14], 0
jle 0x10008270
xor edi, edi
nop dword [eax + eax]
mov esi, dword [ebx + 0x4dc4]
lea ecx, [esi + 0x14]
mov dword [ebp - 4], 2
add ecx, edi
call fcn.1006e2a0
lea ecx, [esi + 0x1c]
add ecx, edi
call fcn.10034dc0
mov eax, dword [ebp - 0x14]
add edi, 0x6c
inc eax
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
cmp eax, dword [ebx + 0x4dbc]
jl 0x10008230
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [ebx + 0x4dc4]
test esi, esi
je 0x100082fc
mov ecx, dword [0x10167324]
mov dword [ebx + 0x4dc0], 0
mov dword [ebx + 0x4dbc], 0
test ecx, ecx
je 0x100082ec
movsx eax, word [ecx + 0x5fa4]
mov edx, dword [ecx + 0x3fe0]
add eax, 0xbf5
mov dword [ebp - 0x20], edx
cmp dword [ecx + eax*8], edx
lea eax, [ecx + eax*8]
je 0x100082e2
movsx eax, word [ecx + 0x5fa4]
inc eax
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov edx, dword [ebp - 0x20]
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
lea eax, [ecx + eax*8]
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
push esi
call edi
add esp, 4
mov dword [ebx + 0x4dc4], 0
lea ecx, [ebx + 0x4df4]
call fcn.10001070
lea ecx, [ebx + 0x5dcc]
call fcn.10001070
lea ecx, [ebx + 0x5dd8]
call fcn.10001070
lea ecx, [ebx + 0x4e74]
call fcn.10001070
lea ecx, [ebx + 0x4e80]
call fcn.10001070
lea ecx, [ebx + 0x4e8c]
call fcn.10001070
lea ecx, [ebx + 0x5ce0]
mov dword [ebx + 0x5cdc], 0
call fcn.10001070
lea ecx, [ebx + 0x5eb4]
call fcn.10001070
mov eax, dword [ebx + 0x5eb0]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100083e5
mov ecx, dword [0x10167324]
mov dword [ebx + 0x5eac], 0
mov dword [ebx + 0x5ea8], 0
test ecx, ecx
je 0x100083d5
movsx edx, word [ecx + 0x5fa4]
lea eax, [ecx + 0x5fa8]
mov esi, dword [ecx + 0x3fe0]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x100083c8
lea eax, [edx + 1]
cdq
idiv dword [ebp - 0x10]
movzx eax, dx
mov word [ecx + 0x5fa4], ax
cwde
add eax, 0xbf5
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5fa0]
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 4
mov dword [ebx + 0x5eb0], 0
cmp dword [ebx + 0x5f10], 0
je 0x10008417
mov esi, dword [ebx + 0x5f10]
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
cmp esi, eax
je 0x1000840d
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebx + 0x5f10], 0
lea ecx, [ebx + 0x5f14]
call fcn.10001070
lea ecx, [ebx + 0x5f40]
call fcn.10001070
lea ecx, [ebx + 0x5f4c]
call fcn.10001070
mov dword [ebx + 0x5f58], 0
mov byte [ebx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret