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

Disassembly:
mov edx, dword [esp + 0x10]
sub esp, 0x54
mov eax, edx
push ebx
shr eax, 0x10
push esi
movsx ecx, ax
push edi
mov eax, edx
mov dword [esp + 0x44], ecx
push ebp
and ax, 0x7fff
test dh, 0x80
movsx ebx, ax
mov eax, dword [esp + 0x6c]
je 0x49f661
mov eax, dword [eax + 0xe4]
jmp 0x49f667
mov eax, dword [eax + 0xd0]
mov ecx, dword [esp + 0x48]
xor esi, esi
add ecx, eax
mov ebp, dword [esp + 0x68]
cmp ebp, esi
je 0x49f686
mov eax, dword [ebp + 0xac]
test eax, eax
je 0x49f686
mov eax, dword [eax + 0x2c]
jmp 0x49f688
xor eax, eax
push 0
push ecx
lea ecx, [esp + 0x40]
push ecx
push eax
push ebp
call fcn.004aec90
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x2c]
add esp, 0x14
mov eax, dword [edx]
mov edi, dword [edx + 4]
mov dword [ecx], eax
mov eax, dword [edx + 8]
mov dword [ecx + 4], edi
mov edx, dword [edx + 0xc]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], edx
test ebx, ebx
jle 0x49f74f
mov edi, 2
test byte [esp + 0x24], 1
je 0x49f6e8
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
xor eax, eax
mov al, byte [ecx + edx]
mov dword [esp + 0x10], eax
test eax, eax
je 0x49f747
inc esi
inc dword [esp + 0x1c]
jmp 0x49f747
test word [esp + 0x24], di
je 0x49f71a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp word [eax + ecx], 0
je 0x49f70c
add dword [esp + 0x1c], edi
mov dword [esp + 0x10], edi
add esi, dword [esp + 0x10]
jmp 0x49f747
mov dword [esp + 0x10], 0
add esi, dword [esp + 0x10]
jmp 0x49f747
test ebp, ebp
je 0x49f72d
mov eax, dword [ebp + 0xac]
test eax, eax
je 0x49f72d
mov ecx, dword [eax + 0x2c]
jmp 0x49f72f
xor ecx, ecx
lea eax, [esp + 0x10]
lea edx, [esp + 0x18]
push eax
push edx
push ecx
call fcn.004ae200
movsx ecx, ax
add esp, 0xc
add esi, ecx
cmp ebx, esi
jg 0x49f6c5
lea eax, [esp + 0x38]
push 0
push 0x4b0110
push 0
push eax
push ebp
call fcn.004afda0
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x3c]
mov dword [esp + 0x24], eax
add esp, 0x14
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 4], ebx
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
mov dword [edx + 8], esi
mov esi, dword [ecx + 8]
mov dword [edx + 0xc], eax
lea edx, [esp + 0x4c]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov dword [edx + 4], ebx
mov dword [edx + 8], esi
xor esi, esi
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x18], eax
jne 0x49f7d1
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x1c], eax
jb 0x49f7c7
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x2c]
jmp 0x49f7d6
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x1c]
jmp 0x49f7d6
mov eax, 0xffffffff
test eax, eax
je 0x49f83d
lea eax, [esp + 0x18]
push esi
lea ecx, [esp + 0x2c]
push 0x4b0140
push eax
push ecx
push ebp
call fcn.004afda0
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x60]
mov dword [esp + 0x24], eax
add esp, 0x14
mov eax, dword [edx]
mov ebx, dword [edx + 4]
mov edi, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edi
cmp dword [esp + 0x10], esi
mov dword [ecx + 0xc], eax
je 0x49f83d
lea eax, [esp + 0x18]
push esi
lea ecx, [esp + 0x2c]
push 0x4b0110
push eax
push ecx
push ebp
call fcn.004afda0
mov dword [esp + 0x24], eax
add esp, 0x14
jmp 0x49f7a9
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x28]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [esp + 0x4c]
mov dword [edx + 4], ebx
mov dword [edx + 8], esi
cmp dword [esp + 0x38], ecx
mov dword [edx + 0xc], eax
jne 0x49f883
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x3c], eax
ja 0x49f879
mov esi, eax
sub esi, dword [esp + 0x3c]
jmp 0x49f888
mov esi, dword [esp + 0x3c]
sub esi, dword [esp + 0x50]
jmp 0x49f888
mov esi, 0xffffffff
test esi, esi
jne 0x49f8af
push 0xffff8855
push 2
push ebp
call fcn.004bda00
mov eax, dword [esp + 0x78]
add esp, 0xc
add eax, 0x48
push 0xfffffffffffffffe
push eax
call dword [sym.imp.MSVCRT40.dll_longjmp]
add esp, 8
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x40]
lea edx, [esp + 0x38]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x14], 0
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 4], ebx
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x4c]
cmp dword [esp + 0x28], eax
jne 0x49f8ff
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x2c], eax
jb 0x49f8f5
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x50]
jmp 0x49f904
mov eax, dword [esp + 0x50]
sub eax, dword [esp + 0x2c]
jmp 0x49f904
mov eax, 0xffffffff
test eax, eax
je 0x49f94a
lea eax, [esp + 0x28]
push 0
lea ecx, [esp + 0x50]
push 0x4b0140
push eax
push ecx
push ebp
call fcn.004afda0
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x60]
mov dword [esp + 0x24], eax
add esp, 0x14
push 0
push 0x4b0110
push ecx
push edx
push ebp
call fcn.004afda0
mov dword [esp + 0x24], eax
inc dword [esp + 0x28]
add esp, 0x14
jmp 0x49f8d7
cmp dword [esp + 0x14], 1
jne 0x49f98c
mov eax, dword [esp + 0x3c]
and esi, 0x7fff
add eax, dword [esp + 0x48]
shl eax, 0x10
or eax, esi
test byte [esp + 0x44], 0x20
je 0x49f970
or eax, 0x80000000
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x74]
push eax
push ecx
push ebp
call fcn.0049f600
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x54
ret
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
mov eax, edi
shl ax, 2
push eax
push ecx
push ebp
call fcn.004a0030
mov dword [esp + 0x68], eax
add esp, 0xc
cmp dword [esp + 0x14], 0
jle 0x49fa45
mov esi, eax
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x3c]
mov bl, byte [esp + 0x44]
and bl, 0x20
push 0
shr bl, 5
push 0x4b0140
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
push eax
push ecx
push ebp
call fcn.004afda0
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
add esp, 0x14
sub eax, edi
add edi, dword [esp + 0x48]
shl edi, 0x10
and eax, 0x7fff
or eax, edi
test bl, bl
je 0x49fa03
or eax, 0x80000000
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x74]
add esi, 4
push eax
push ecx
push ebp
call fcn.0049f600
lea ecx, [esp + 0x38]
lea edx, [esp + 0x48]
add esp, 0x10
mov dword [esi - 4], eax
push 0
push 0x4b0110
push ecx
push edx
push ebp
call fcn.004afda0
mov dword [esp + 0x24], eax
add esp, 0x14
dec dword [esp + 0x60]
jne 0x49f9ba
mov eax, dword [esp + 0x6c]
push 0
push eax
push ebp
call fcn.0049f130
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x20]
mov dword [eax + 0xc], 0xe
add esp, 0xc
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x54
ret