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

Disassembly:
sub esp, 0x668
mov ecx, dword [0x84a7c8]
lea eax, [esp + 0x168]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x678]
push edi
push 0x100
push esi
push eax
call dword [ecx + 0xd0]
mov edx, dword [0x84a7c8]
push esi
call dword [edx + 0xf4]
add esp, 0x10
cmp eax, 0x100
jb 0x4db4a0
movsx eax, byte [esi + 0xff]
push eax
push 0xff
push 0x100
push esi
push 0x8000001e
mov dword [esp + 0x24], 1
call fcn.004f8220
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
push ecx
call fcn.004dd0b0
add esp, 0x18
mov byte [esp + 0x277], 0
mov ebp, dword [esp + 0x680]
xor esi, esi
cmp ebp, esi
mov byte [esp + 0x78], 0
je 0x4db523
cmp byte [ebp], 0
je 0x4db523
mov eax, dword [0x84a7c8]
push 0x100
lea edx, [esp + 0x7c]
push ebp
push edx
call dword [eax + 0xd0]
mov ecx, dword [0x84a7c8]
push ebp
call dword [ecx + 0xf4]
add esp, 0x10
cmp eax, 0x100
jb 0x4db523
movsx edx, byte [ebp + 0xff]
push edx
push 0xff
push 0x100
push ebp
push 0x8000001e
mov dword [esp + 0x24], 1
call fcn.004f8220
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
call fcn.004dd0b0
add esp, 0x18
mov byte [esp + 0x177], 0
mov eax, dword [0x84a8ac]
mov ecx, dword [0x84a7c8]
mov ebx, 4
cmp dword [eax + ecx + 0x1c], esi
je 0x4db54b
mov edx, dword [eax + ecx + 0x20]
mov ebx, 0x8004
cmp edx, esi
je 0x4db54b
mov ebx, 0x9004
mov eax, dword [eax + ecx + 0x30]
cmp eax, esi
je 0x4db567
push ebx
lea ecx, [esp + 0x7c]
push esi
lea edx, [esp + 0x180]
push ecx
push edx
call eax
add esp, 0x10
lea eax, [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x88]
push ebx
lea edx, [esp + 0x18c]
push ecx
push edx
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
call fcn.004dafd0
mov edi, eax
add esp, 0x1c
cmp edi, esi
mov dword [esp + 0x38], edi
jne 0x4db5b3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x668
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push eax
call fcn.004d8380
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4db5eb
push edi
call fcn.004d38a0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x668
ret
mov eax, dword [esp + 0x24]
test ah, ah
jns 0x4db8d0
test ah, 0x10
je 0x4db60b
push edi
push esi
call fcn.004d4f90
add esp, 8
jmp 0x4db8e0
push esi
call fcn.004d8310
mov ecx, eax
mov edi, 1
add esp, 4
cmp ecx, edi
mov dword [esp + 0x10], ecx
jle 0x4db7c0
mov ecx, dword [esp + 0x67c]
mov eax, dword [0x84a7c8]
push 0x100
lea edx, [esp + 0x17c]
push ecx
push edx
call dword [eax + 0xd0]
mov ecx, dword [esp + 0x688]
mov edx, dword [0x84a7c8]
push ecx
call dword [edx + 0xf4]
add esp, 0x10
cmp eax, 0x100
jb 0x4db6aa
mov eax, dword [esp + 0x67c]
mov dword [esp + 0x30], 1
movsx ecx, byte [eax + 0xff]
push ecx
push 0xff
push 0x100
push eax
push 0x8000001e
call fcn.004f8220
lea edx, [esp + 0x44]
mov dword [esp + 0x48], eax
push edx
call fcn.004dd0b0
add esp, 0x18
mov byte [esp + 0x277], 0
test ebp, ebp
mov byte [esp + 0x78], 0
je 0x4db725
cmp byte [ebp], 0
je 0x4db725
mov ecx, dword [0x84a7c8]
push 0x100
lea eax, [esp + 0x7c]
push ebp
push eax
call dword [ecx + 0xd0]
mov edx, dword [0x84a7c8]
push ebp
call dword [edx + 0xf4]
add esp, 0x10
cmp eax, 0x100
jb 0x4db725
movsx eax, byte [ebp + 0xff]
push eax
push 0xff
push 0x100
push ebp
push 0x8000001e
mov dword [esp + 0x2c], 1
call fcn.004f8220
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
push ecx
call fcn.004dd0b0
add esp, 0x18
mov byte [esp + 0x177], 0
mov edx, dword [0x84a7c8]
mov eax, dword [0x84a8ac]
mov eax, dword [eax + edx + 0x30]
test eax, eax
je 0x4db74c
push ebx
lea ecx, [esp + 0x7c]
push edi
lea edx, [esp + 0x180]
push ecx
push edx
call eax
add esp, 0x10
push 5
push edi
push esi
call fcn.004d8420
mov eax, dword [esi + 0xc]
push esi
mov dword [esp + 0x38], eax
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x30], ecx
mov edx, dword [esi + 0x14]
xor eax, eax
mov dword [esp + 0x3c], edx
mov ah, byte [esi + 0x23]
mov al, byte [esi + 0x20]
mov dword [esp + 0x34], eax
call fcn.004d8220
lea ecx, [esp + 0x34]
lea edx, [esp + 0x3c]
push ecx
lea eax, [esp + 0x34]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
lea edx, [esp + 0x98]
push ebx
lea eax, [esp + 0x19c]
push edx
push eax
call fcn.004dafd0
add esp, 0x2c
mov dword [esp + edi*4 + 0x38], eax
test eax, eax
je 0x4db7e1
mov eax, dword [esp + 0x10]
inc edi
cmp edi, eax
jl 0x4db627
mov ecx, eax
xor eax, eax
mov al, byte [esi + 0x23]
test al, 0x60
je 0x4db833
test al, 0x40
je 0x4db80a
push 4
lea edx, [esp + 0x3c]
push ecx
push edx
lea eax, [esp + 0x284]
push 0
push eax
jmp 0x4db81c
dec edi
js 0x4db7f4
mov ecx, dword [esp + edi*4 + 0x38]
push ecx
call fcn.004d38a0
add esp, 4
dec edi
jns 0x4db7e4
push esi
call fcn.004d8270
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x668
ret
push 8
push ecx
lea ecx, [esp + 0x40]
lea edx, [esp + 0x280]
push ecx
push 0
push edx
call fcn.004dae00
mov eax, dword [esp + 0x4c]
add esp, 0x14
push eax
call fcn.004d4c70
add esp, 4
jmp 0x4db84f
xor edi, edi
test ecx, ecx
jle 0x4db853
mov ecx, dword [esp + edi*4 + 0x38]
push ecx
call fcn.004d4c70
mov eax, dword [esp + 0x14]
add esp, 4
inc edi
cmp edi, eax
jl 0x4db839
mov ecx, dword [esp + 0x10]
xor edi, edi
test ecx, ecx
jle 0x4db909
push 5
push edi
push esi
call fcn.004d8420
add esp, 0xc
test eax, eax
je 0x4db888
mov edx, dword [esp + edi*4 + 0x38]
push edx
push esi
call fcn.004d4f90
add esp, 8
test eax, eax
je 0x4db8a0
push esi
call fcn.004d8220
add esp, 4
mov eax, dword [esp + edi*4 + 0x38]
push eax
call fcn.004d38a0
mov eax, dword [esp + 0x14]
add esp, 4
inc edi
cmp edi, eax
jl 0x4db85d
jmp 0x4db909
mov ebx, dword [esp + 0x10]
cmp edi, ebx
jge 0x4db8ba
mov ecx, dword [esp + edi*4 + 0x38]
push ecx
call fcn.004d38a0
add esp, 4
inc edi
cmp edi, ebx
jl 0x4db8a8
push esi
call fcn.004d8270
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x668
ret
push edi
call fcn.004d4c70
push edi
push esi
call fcn.004d4f90
add esp, 0xc
test eax, eax
jne 0x4db900
push esi
call fcn.004d8270
push edi
call fcn.004d38a0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x668
ret
push edi
call fcn.004d38a0
add esp, 4
mov eax, dword [0x84a7c8]
mov edx, dword [0x84a8ac]
push 0x30006
mov ecx, dword [edx + eax + 8]
push ecx
call dword [eax + 0x118]
mov edi, eax
add esp, 8
test edi, edi
je 0x4db8ba
lea ebx, [edi + 0x10]
mov dword [edi + 0x50], 0
push edi
mov byte [edi + 0x51], 0x11
push 0x81911c
mov dword [edi + 4], 0
mov byte [ebx], 0
mov byte [edi + 0x30], 0
mov dword [edi], esi
mov dword [edi + 0x54], 1
mov byte [edi + 0x50], 1
call fcn.004de800
mov esi, dword [esp + 0x684]
mov edx, dword [0x84a7c8]
add esp, 8
push 0x20
push esi
push ebx
call dword [edx + 0xd0]
mov eax, dword [0x84a7c8]
push esi
call dword [eax + 0xf4]
add esp, 0x10
cmp eax, 0x20
mov ebx, 1
jb 0x4db9c1
movsx ecx, byte [esi + 0x1f]
push ecx
push 0x1f
push 0x20
push esi
push 0x8000001e
mov dword [esp + 0x2c], ebx
call fcn.004f8220
lea edx, [esp + 0x2c]
mov dword [esp + 0x30], eax
push edx
call fcn.004dd0b0
add esp, 0x18
mov byte [edi + 0x2f], 0
test ebp, ebp
lea eax, [edi + 0x30]
push 0x20
je 0x4dba13
push ebp
push eax
mov eax, dword [0x84a7c8]
call dword [eax + 0xd0]
mov ecx, dword [0x84a7c8]
push ebp
call dword [ecx + 0xf4]
add esp, 0x10
cmp eax, 0x20
jb 0x4dba72
movsx edx, byte [ebp + 0x1f]
push edx
push 0x1f
push 0x20
push ebp
push 0x8000001e
mov dword [esp + 0x2c], ebx
call fcn.004f8220
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
jmp 0x4dba66
mov ecx, dword [0x84a7c8]
push 0x845a6c
push eax
call dword [ecx + 0xd0]
mov edx, dword [0x84a7c8]
push 0x845a6c
call dword [edx + 0xf4]
add esp, 0x10
cmp eax, 0x20
jb 0x4dba72
movsx eax, byte [0x845a8b]
push eax
push 0x1f
push 0x20
push 0x845a6c
push 0x8000001e
mov dword [esp + 0x2c], ebx
call fcn.004f8220
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
push ecx
call fcn.004dd0b0
add esp, 0x18
mov byte [edi + 0x4f], 0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x668
ret