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

Disassembly:
sub esp, 0x24
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
push ebx
push edi
mov edi, dword [esp + 0x40]
mov edx, dword [edi]
xor ebx, ebx
mov dword [ecx], ebx
mov dword [edi], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
cmp dword [esi + 0x18], ebx
je 0x49bb3f
mov eax, dword [esi + 0x1c]
pop edi
pop ebx
add esp, 0x24
ret 0x1c
push ebp
lea ebp, [esi + 0x20]
mov dword [esp + 0x14], ebp
mov dword [ebp], 2
cmp dword [esi + 0xc], ebx
je 0x49bc2f
mov ecx, dword [esp + 0x48]
push ebp
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov dword [esp + 0x50], edx
lea edx, [esp + 0x50]
push edx
push eax
mov eax, dword [esi + 0x88]
lea ecx, [esp + 0x48]
push ecx
mov ecx, dword [esi + 0x78]
xor edx, edx
call eax
mov edx, dword [esp + 0x44]
xor ecx, ecx
cmp dword [ebp], 1
mov ebx, eax
sete cl
mov dword [esi + 0x1c], ebx
mov dword [edi], edx
mov edx, dword [esp + 0x34]
add dword [esi + 0x14], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x40], ecx
test ebx, ebx
jne 0x49bbb6
cmp dword [esp + 0x48], ebx
jne 0x49bbb6
test ecx, ecx
je 0x49bbbd
mov dword [esi + 0x18], 1
mov ecx, dword [esi + 8]
cmp ecx, 1
jne 0x49bbd6
mov eax, dword [esp + 0x38]
pop ebp
mov dword [eax], edx
pop edi
mov eax, ebx
pop ebx
add esp, 0x24
ret 0x1c
cmp dword [esi + 0x18], 0
je 0x49bc24
mov ebp, 1
cmp ecx, ebp
jbe 0x49bc1e
lea edi, [esi + 0x90]
jmp 0x49bbf0
mov edx, dword [esi + 0xc]
mov ecx, dword [edi]
push eax
mov eax, dword [edi + 0x14]
call eax
cmp dword [esp + 0x40], 0
jne 0x49bc12
cmp dword [esp + 0x3c], 0
je 0x49bc15
mov ecx, dword [esp + 0x18]
cmp dword [esi + 0x14], ecx
jne 0x49bc15
mov eax, dword [esi + 0x14]
inc ebp
add edi, 0x18
cmp ebp, dword [esi + 8]
jb 0x49bbf0
mov edx, dword [esp + 0x38]
mov dword [edx], eax
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x24
ret 0x1c
cmp dword [esi + 8], 1
je 0x49bc66
cmp dword [esi + 4], ebx
jne 0x49bc5a
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, 0x60000
call eax
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x49bc5a
pop ebp
pop edi
mov eax, 2
pop ebx
add esp, 0x24
ret 0x1c
mov dword [esp + 0x4c], ebx
jmp 0x49bc66
mov ebp, dword [esp + 0x14]
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x3c], ebx
mov dword [ebp], 2
cmp dword [esi + 8], edi
jbe 0x49bdf0
jmp 0x49bc90
lea ecx, [edi + edi*2 + 0xf]
lea ebp, [esi + ecx*8]
mov dword [esp + 0x28], ebp
test edi, edi
jne 0x49bcb7
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x24]
sub edx, dword [ecx]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xc], edx
jmp 0x49bcd4
mov edx, dword [esi + edi*4 + 0x2c]
mov ebx, dword [esi + edi*4 + 0x38]
mov ecx, dword [esi + edi*4 + 0x20]
lea eax, [edi - 1]
shl eax, 0x11
add eax, dword [esi + 4]
add eax, edx
sub ebx, edx
mov dword [esp + 0xc], ebx
mov edx, dword [esi + 8]
dec edx
cmp edi, edx
jne 0x49bcf5
mov ebp, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
sub ebx, dword [ebp]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
mov dword [esp + 0x10], ebx
jmp 0x49bd13
mov edx, dword [esi + edi*4 + 0x30]
cmp edx, dword [esi + edi*4 + 0x3c]
jne 0x49bdd0
mov edx, edi
shl edx, 0x11
add edx, dword [esi + 4]
mov dword [esp + 0x10], 0x20000
mov ebx, dword [esi + edi*4 + 0x68]
test ebx, ebx
je 0x49bd2f
cmp dword [esp + 0x3c], 0
jne 0x49bdd0
mov dword [esp + 0x3c], ebx
jmp 0x49bdd0
lea ebx, [esp + 0x2c]
push ebx
push dword [esp + 0x50]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebp]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [ebp + 0x10]
call eax
xor ebp, ebp
cmp eax, ebp
je 0x49bd60
mov dword [esi + edi*4 + 0x68], eax
cmp dword [esp + 0x3c], ebp
jne 0x49bd60
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x2c]
xor ecx, ecx
cmp edx, 1
sete cl
cmp ecx, ebp
jne 0x49bd84
cmp dword [esi + 8], 1
mov dword [esp + 0x20], ebp
jne 0x49bd84
cmp eax, ebp
jne 0x49bd84
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov edx, dword [esp + 0xc]
cmp edi, ebp
jne 0x49bd98
mov eax, dword [esp + 0x44]
add dword [eax], edx
add dword [esp + 0x40], edx
jmp 0x49bd9c
add dword [esi + edi*4 + 0x2c], edx
mov eax, dword [esi + 8]
dec eax
cmp edi, eax
mov eax, dword [esp + 0x10]
jne 0x49bdb4
mov ecx, dword [esp + 0x38]
add dword [ecx], eax
add dword [esp + 0x34], eax
jmp 0x49bdc0
mov dword [esi + edi*4 + 0x3c], eax
mov dword [esi + edi*4 + 0x30], ebp
mov dword [esi + edi*4 + 0x24], ecx
cmp eax, ebp
jne 0x49bdc8
cmp edx, ebp
je 0x49bdd0
mov dword [esp + 0x1c], 1
inc edi
cmp edi, dword [esi + 8]
jb 0x49bc90
cmp dword [esp + 0x1c], 0
jne 0x49bc60
cmp dword [esp + 0x20], 0
je 0x49bdf7
mov ebp, dword [esp + 0x14]
mov dword [ebp], 1
mov eax, dword [esp + 0x3c]
pop ebp
pop edi
pop ebx
add esp, 0x24
ret 0x1c