Function at 0x49ef91
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x1022905c]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [esp + 0x3c], eax
push esi
xor eax, eax
mov dword [esp + 0x38], ebx
push edi
mov edi, dword [ebx]
mov esi, edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x58], 1
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], edi
call fcn.0049bcf4
mov dword [esp + 0x18], eax
test esi, esi
je 0x4a05fb
cmp byte [edi + 0x51], 0
jne 0x4a05fb
xor eax, eax
cmp dword [ebx + 0x24], eax
jne 0x4a05fb
push eax
push eax
push eax
push 0x15
pop edx
mov ecx, ebx
call fcn.00489b8d
add esp, 0xc
test eax, eax
jne 0x4a05fb
push 0x30
push eax
lea eax, [esp + 0x84]
push eax
call fcn.0050d8c0
mov eax, dword [esp + 0x50]
add esp, 0xc
cmp byte [eax], 8
ja 0x49f04c
mov edx, dword [esi + 0x30]
test edx, edx
je 0x49f041
mov ecx, edi
call fcn.004828a5
xor eax, eax
and dword [esi + 8], 0xfffffffe
mov dword [esi + 0x30], eax
jmp 0x49f04e
xor eax, eax
push eax
mov edx, esi
mov ecx, ebx
call fcn.0049ea53
xor eax, eax
pop ecx
cmp dword [ebx + 0x24], eax
jne 0x49f21f
cmp byte [edi + 0x51], al
jne 0x49f21f
mov eax, dword [esp + 0x44]
cmp byte [eax], 9
jne 0x49f07f
mov edx, esi
mov ecx, ebx
call fcn.0049b72d
mov edx, esi
mov ecx, ebx
call fcn.004ae6d3
test eax, eax
jne 0x49f21f
mov eax, dword [esi + 0x20]
lea edi, [esp + 0xac]
mov dword [esp + 0x2c], eax
xor edx, edx
mov eax, dword [esi + 8]
shr eax, 3
and eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 0x4c], eax
xor eax, eax
push 0xa
pop ecx
rep stosd dword es:[edi], eax
mov ecx, edx
mov eax, dword [esi + 0x30]
mov dword [esp + 0xac], eax
cmp dword [esi + 0x34], edx
jne 0x49f1dd
mov edi, dword [esp + 0x2c]
cmp ecx, dword [edi]
jge 0x49f253
imul eax, ecx, 0x48
mov dword [esp + 0x14], eax
test byte [eax + edi + 0x2c], 8
mov ebx, dword [eax + edi + 0x18]
mov edx, dword [eax + edi + 0x1c]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x54], edx
je 0x49f137
mov edx, dword [eax + edi + 0x34]
mov ecx, dword [esi + 0x24]
call fcn.0048612b
test eax, eax
je 0x49f12f
mov eax, dword [esp + 0x20]
mov ecx, 0x2000
test word [eax + 0x4c], cx
jne 0x49f12f
mov edx, dword [esp + 0x14]
and byte [edx + edi + 0x2c], 0xd7
mov edx, dword [edx + edi + 0x34]
mov ecx, dword [esi + 0x24]
call fcn.0049a370
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x54]
test edx, edx
je 0x49f1ce
mov eax, dword [edx]
mov ebx, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
movsx eax, word [ebx + 0x2a]
mov ebx, dword [esp + 0x3c]
cmp eax, dword [esp + 0x28]
jne 0x49f202
test byte [edx + 8], 8
jne 0x49f1ce
xor eax, eax
cmp dword [edx + 0x30], eax
je 0x49f182
test ecx, ecx
jne 0x49f182
test dword [esi + 8], 0x40000
je 0x49f182
cmp dword [edi], 1
je 0x49f1ce
test byte [edi + 0x74], 0xa
jne 0x49f1ce
push dword [esp + 0x4c]
mov edx, esi
push ecx
mov ecx, ebx
call fcn.0049d565
pop ecx
pop ecx
test eax, eax
je 0x49f1a2
xor eax, eax
cmp dword [ebx + 0x24], eax
jne 0x49f21b
or dword [esp + 0xc], 0xffffffff
mov eax, dword [esp + 0x20]
mov edi, dword [esi + 0x20]
mov dword [esp + 0x2c], edi
cmp byte [eax + 0x51], 0
jne 0x4a05f4
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xc]
cmp byte [eax], 8
jbe 0x49f1ce
mov eax, dword [esi + 0x30]
mov dword [esp + 0xac], eax
inc ecx
cmp dword [esi + 0x34], 0
mov dword [esp + 0xc], ecx
je 0x49f0d1
push dword [esp + 0x44]
mov edx, esi
mov ecx, ebx
call fcn.0049c2d9
mov edi, eax
xor eax, eax
pop ecx
cmp dword [esi + 0x38], eax
jne 0x49f1fb
mov ecx, ebx
call fcn.00472065
mov eax, edi
jmp 0x4a05fe
push dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
push dword [ecx]
push eax
push 0x101ef6e4
push ebx
call fcn.0045c724
add esp, 0x14
mov edi, dword [esp + 0x20]
mov eax, dword [edi]
xor edx, edx
cmp eax, 1
jle 0x49f273
mov ecx, dword [esp + 0x20]
cmp word [ecx + 0x4c], dx
jl 0x49f273
mov edx, esi
mov ecx, ebx
call fcn.0049dba9
mov eax, dword [edi]
xor edx, edx
mov dword [esp + 0x38], 0x101e09e0
mov ecx, edx
mov dword [esp + 0x1c], ecx
test eax, eax
jle 0x49f589
mov dword [esp + 0x2c], edi
jmp 0x49f291
mov edi, eax
jmp 0x49f21f
xor eax, eax
inc eax