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

Disassembly:
sub esp, 0x10
push ebx
movzx ebx, byte [edx + 0x10]
push ebp
mov ebp, dword [esp + 0x1c]
and ebx, 3
push esi
mov esi, ecx
mov dword [esp + 0x10], edx
inc ebx
mov ecx, 1
push edi
mov dword [esp + 0x10], ebx
cmp ebx, dword [esi + 8]
jne 0x49b945
cmp dword [esi + 0xc], 0
je 0x49b7e4
test ebp, ebp
jne 0x49b7ec
mov eax, dword [esp + 0x28]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], eax
jmp 0x49b957
test ebp, ebp
jne 0x49b945
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x49b945
mov eax, ebx
lea ecx, [esi + 0x48]
shl eax, 5
add edx, 0xfffffff8
add edx, eax
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x49b932
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x49b932
inc edi
add ecx, 8
sub edx, 0x20
cmp edi, ebx
jb 0x49b805
mov edx, dword [esp + 0x28]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], edx
mov ecx, dword [esp + 0x14]
mov eax, ebx
shl eax, 5
cmp dword [eax + ecx - 8], 0x21
jne 0x49bb00
cmp dword [eax + ecx - 4], 0
jne 0x49bb00
mov ecx, dword [esi + 0x78]
cmp dword [ecx + 0x74], 0
je 0x49bae9
test ebp, ebp
je 0x49baf1
mov dword [ecx + 0x20], ebp
mov dword [ecx + 0x24], edx
xor ebp, ebp
test ebx, ebx
je 0x49b8a3
mov ebx, dword [esp + 0x14]
lea edi, [esi + 0x78]
add ebx, eax
nop dword [eax]
push dword [esi]
mov ecx, dword [edi]
lea edx, [ebx + 4]
push dword [ebx]
mov eax, dword [edi + 8]
call eax
test eax, eax
jne 0x49bb05
inc ebp
add edi, 0x18
sub ebx, 0x20
cmp ebp, dword [esp + 0x10]
jb 0x49b880
xor ebx, ebx
mov dword [esi + 0x3c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x2c], 0
cmp dword [esi + 8], ebx
jbe 0x49b90a
lea ebp, [esi + 0x68]
lea edi, [esi + 0x78]
nop
mov ecx, dword [edi]
mov eax, dword [edi + 0xc]
call eax
mov dword [ebp], 0
lea edi, [edi + 0x18]
inc ebx
lea ebp, [ebp + 4]
cmp ebx, dword [esi + 8]
jb 0x49b8f0
pop edi
mov dword [esi + 0x14], 0
xor eax, eax
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
mov eax, dword [esp + 0x28]
mov ecx, esi
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], eax
call fcn.0049b2f0
jmp 0x49b966
mov edx, dword [esp + 0x28]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], edx
test ecx, ecx
je 0x49b830
mov ecx, esi
call fcn.0049b2f0
test ebx, ebx
je 0x49badc
xor ebp, ebp
mov dword [esp + 0x18], ebp
nop dword [eax]
mov ecx, dword [esp + 0x14]
mov eax, ebx
sub eax, ebp
shl eax, 5
mov edx, dword [eax + ecx - 8]
mov ecx, dword [eax + ecx - 4]
lea eax, [ebp + 5]
mov dword [esp + 0x1c], edx
lea eax, [eax + eax*2]
mov dword [esi + ebp*8 + 0x48], edx
lea edi, [esi + eax*8]
mov dword [esi + ebp*8 + 0x4c], ecx
cmp edx, 0x21
jne 0x49ba1a
test ecx, ecx
jne 0x49ba1a
mov eax, dword [edi]
test eax, eax
jne 0x49b9f3
mov eax, dword [esi]
lea edx, [ecx + 0x78]
mov ecx, eax
mov eax, dword [eax]
call eax
test eax, eax
jne 0x49b9c0
mov eax, 2
jmp 0x49bacb
mov dword [edi], eax
mov dword [edi + 4], 0x49af50
mov dword [edi + 8], 0x49af90
mov dword [edi + 0xc], 0x49af80
mov dword [edi + 0x10], 0x49aee0
mov dword [edi + 0x14], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x18], 0
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x74], 0
test ecx, ecx
je 0x49ba13
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x74], 1
mov dword [eax + 0x24], ecx
xor eax, eax
jmp 0x49bacb
test ebp, ebp
je 0x49bb00
mov eax, edx
add eax, 0xfffffffd
adc ecx, 0xffffffff
test ecx, ecx
ja 0x49bac2
jb 0x49ba3d
cmp eax, 7
ja 0x49bac2
mov ebx, dword [edi]
test ebx, ebx
jne 0x49bab7
mov ebp, dword [esi]
mov edx, 0x124
mov ecx, ebp
mov eax, dword [ebp]
call eax
mov ebx, eax
test ebx, ebx
jne 0x49ba60
lea eax, [ebx + 2]
mov ebx, dword [esp + 0x10]
jmp 0x49bac7
mov eax, dword [ebp]
mov edx, 0x4000
mov ecx, ebp
call eax
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x49ba87
mov eax, dword [ebp + 4]
mov edx, ebx
mov ecx, ebp
call eax
mov ebx, dword [esp + 0x10]
mov eax, 2
jmp 0x49bac7
mov edx, dword [esp + 0x1c]
mov dword [edi], ebx
mov dword [edi + 4], 0x49b500
mov dword [edi + 8], 0x49b560
mov dword [edi + 0xc], 0x49b530
mov dword [edi + 0x10], 0x49b3d0
mov dword [edi + 0x14], 0x49b4f0
mov dword [ebx + 0x10], 0x49b340
mov dword [ebx + 0x14], edx
xor eax, eax
mov ebx, dword [esp + 0x10]
jmp 0x49bac7
mov eax, 4
mov ebp, dword [esp + 0x18]
test eax, eax
jne 0x49bb05
inc ebp
mov dword [esp + 0x18], ebp
cmp ebp, ebx
jb 0x49b970
mov eax, ebx
mov dword [esi + 8], ebx
shl eax, 5
jmp 0x49b86a
test ebp, ebp
je 0x49b86a
pop edi
pop esi
pop ebp
mov eax, 0xb
pop ebx
add esp, 0x10
ret 8
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8