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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
cmp byte [ecx + 0x2c], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
jne 0x49ea41
xor al, al
jmp 0x49ed99
cmp dword [ebp + 8], 0
je 0x49ed97
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x49ed97
cmp edi, 0x40000000
jae 0x49ea3a
mov esi, dword [0x8b682c]
test esi, esi
je 0x49ea6d
call fcn.004a1756
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
xor eax, eax
add edi, ebx
adc eax, ecx
cmp ecx, eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edi
ja 0x49ed97
jb 0x49ea97
cmp ebx, edi
jae 0x49ed97
mov eax, dword [esp + 0x2c]
and dword [esp + 0x88], 0
mov dword [esp + 0x84], eax
xor eax, eax
lea edi, [esp + 0x1c]
stosb byte es:[edi], al
mov edi, dword [esp + 0xc]
push dword [edi + 0x38]
add edi, 0x30
lea esi, [esp + 0x44]
mov dword [esp + 0x84], ebx
call fcn.0042dad8
mov edi, dword [esp + 0xc]
push dword [edi + 0x34]
add edi, 0x30
lea esi, [esp + 0x4c]
call fcn.0042dad8
push dword [esp + 0x44]
lea eax, [esp + 0x34]
push dword [esp + 0x44]
lea edx, [esp + 0x88]
push dword [esp + 0x54]
push dword [esp + 0x54]
push dword [esp + 0x2c]
push eax
call fcn.004a0466
mov edi, dword [esp + 0x24]
add esp, 0x18
push dword [edi + 0x34]
add edi, 0x30
lea esi, [esp + 0x54]
call fcn.0042dad8
mov esi, dword [esp + 0x30]
test esi, esi
je 0x49eb27
cmp esi, dword [esp + 0x50]
je 0x49eb2c
call fcn.0054b876
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x54]
je 0x49ebf3
mov dword [esp + 0x58], esi
push 0xffffffffffffffff
lea esi, [esp + 0x5c]
mov dword [esp + 0x60], eax
call fcn.0050511c
mov ecx, dword [eax]
mov eax, dword [eax + 4]
lea esi, [esp + 0x60]
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
call fcn.004b0a79
mov esi, dword [eax]
mov ecx, esi
mov dword [esp + 0x20], esi
call fcn.0049e66f
cmp dword [esp + 0x2c], edx
ja 0x49ebf3
jb 0x49eb7c
cmp ebx, eax
jae 0x49ebf3
mov ecx, esi
call fcn.0049e66f
mov ecx, dword [esp + 0x3c]
cmp ecx, edx
ja 0x49eb9d
jb 0x49eb93
cmp dword [esp + 0x38], eax
jae 0x49eb9d
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], ecx
jmp 0x49eba8
mov ecx, esi
call fcn.0049e66f
mov dword [esp + 0x14], edx
sub eax, ebx
add esi, 8
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x49ebbc
xor edi, edi
jmp 0x49ebc1
mov edi, dword [esi + 8]
sub edi, eax
mov ecx, dword [esp + 0x20]
call fcn.0049e66f
push dword [esp + 0x10]
sub edi, eax
add edi, ebx
push edi
call fcn.004a0018
push eax
mov eax, ebx
sub eax, dword [ebp + 0x10]
add eax, dword [ebp + 8]
push eax
call fcn.0054d050
add esp, 0xc
add ebx, dword [esp + 0x10]
jmp 0x49ed78
mov edi, dword [esp + 0xc]
push dword [edi + 0x38]
add edi, 0x30
lea esi, [esp + 0x6c]
call fcn.0042dad8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49ec14
cmp eax, dword [esp + 0x68]
je 0x49ec19
call fcn.0054b876
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x6c]
je 0x49ec66
lea esi, [esp + 0x30]
call fcn.004b0a79
mov ecx, dword [eax]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
cmp dword [esp + 0x2c], ecx
ja 0x49ec66
jb 0x49ec3f
cmp ebx, eax
jae 0x49ec66
mov edx, dword [esp + 0x3c]
cmp edx, ecx
ja 0x49ec59
jb 0x49ec4f
cmp dword [esp + 0x38], eax
jae 0x49ec59
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], edx
jmp 0x49ec5d
mov dword [esp + 0x24], ecx
sub eax, ebx
mov esi, eax
jmp 0x49ed56
mov edi, dword [esp + 0xc]
push dword [edi + 0x38]
add edi, 0x30
lea esi, [esp + 0x74]
call fcn.0042dad8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49ec87
cmp eax, dword [esp + 0x70]
je 0x49ec8c
call fcn.0054b876
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x74]
je 0x49ed20
lea esi, [esp + 0x30]
call fcn.004b0a79
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x49ed20
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [eax + 4]
jne 0x49ed20
call fcn.004b0a79
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
add eax, 8
test ecx, ecx
jne 0x49ecc7
xor eax, eax
jmp 0x49eccc
mov eax, dword [eax + 8]
sub eax, ecx
mov edi, dword [esp + 0x38]
sub edi, ebx
cmp edi, eax
jb 0x49ecf4
lea esi, [esp + 0x30]
call fcn.004b0a79
mov eax, dword [eax]
mov ecx, dword [eax + 0xc]
add eax, 8
test ecx, ecx
jne 0x49ecef
xor edi, edi
jmp 0x49ecf4
mov edi, dword [eax + 8]
sub edi, ecx
lea esi, [esp + 0x30]
call fcn.004b0a79
mov esi, dword [eax]
push edi
add esi, 8
push 0
call fcn.004a0018
push eax
mov eax, ebx
sub eax, dword [ebp + 0x10]
add eax, dword [ebp + 8]
push eax
call fcn.0054d050
add esp, 0xc
add ebx, edi
jmp 0x49ed78
mov edi, dword [esp + 0xc]
push dword [edi + 0x38]
add edi, 0x30
lea esi, [esp + 0x7c]
call fcn.0042dad8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x49ed41
cmp eax, dword [esp + 0x78]
je 0x49ed46
call fcn.0054b876
mov eax, dword [esp + 0x34]
cmp eax, dword [esp + 0x7c]
jne 0x49ed7d
mov esi, dword [esp + 0x38]
sub esi, ebx
push esi
push dword [esp + 0x30]
mov eax, ebx
sub eax, dword [ebp + 0x10]
push ebx
add eax, dword [ebp + 8]
push eax
push dword [esp + 0x1c]
call fcn.0049f2c3
test al, al
je 0x49ea3a
add ebx, esi
adc dword [esp + 0x2c], 0
mov eax, dword [esp + 0x3c]
cmp dword [esp + 0x2c], eax
jb 0x49ea97
ja 0x49ed97
cmp ebx, dword [esp + 0x38]
jb 0x49ea97
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10