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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebx, ecx
mov eax, dword [ebx + 0x5c]
xor ebp, ebp
cmp eax, ebp
push esi
push edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
jne 0x4daf8f
cmp dword [ebx + 0x60], ebp
je 0x4dafab
mov eax, dword [ebx + 0x28]
mov esi, 1
push esi
push eax
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax + 0x940]
call fcn.004e46d0
test eax, eax
je 0x4dafad
xor esi, esi
mov edi, dword [ebx + 0x64]
push edi
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebx + 0x64]
mov edx, dword [ebx + 0x4c]
cmp edx, dword [ecx + 0x40]
je 0x4dafd6
mov ecx, ebx
call fcn.004dac50
mov eax, dword [ebx + 0x64]
mov ecx, dword [eax + 0x40]
mov dword [ebx + 0x4c], ecx
cmp esi, ebp
mov ecx, ebx
je 0x4db445
call fcn.004da410
mov edx, dword [ebx + 0x64]
push edx
lea ecx, [esp + 0x28]
call fcn.004d9490
cmp dword [esp + 0x24], ebp
je 0x4db44a
mov eax, dword [ebx + 0x64]
mov ecx, dword [eax + 0x78]
cmp ecx, dword [ebx + 0x38]
jbe 0x4db05d
cmp dword [eax + 0x7c], ebp
je 0x4db05d
mov dword [ebx + 0x38], ecx
cmp dword [ebx + 0x5c], ebp
je 0x4db019
cmp dword [eax + 0x34], ebp
jne 0x4db079
mov esi, dword [ebx + 0x60]
cmp esi, ebp
mov byte [esp + 0x10], 0
je 0x4db07e
mov eax, dword [esi + 4]
cmp word [eax + 8], 2
jne 0x4db055
mov ecx, dword [eax + 0x4c]
call fcn.004f9ab0
test al, al
jne 0x4db04d
mov ecx, dword [esi + 4]
add ecx, 0x1b8
call fcn.004ef2a0
test al, al
je 0x4db055
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], ebp
jne 0x4db079
mov esi, dword [esi]
cmp esi, ebp
jne 0x4db025
jmp 0x4db07e
lea ecx, [esp + 0x24]
call fcn.004d94f0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8
mov byte [esp + 0x10], 1
mov ecx, dword [ebx + 0x64]
mov edx, dword [ecx + 0x28]
mov edi, 0x64
xor eax, eax
cmp edx, edi
je 0x4db0a2
mov ecx, dword [ebx + 0x28]
push 0x545fc8
call fcn.0048c4a0
neg eax
sbb eax, eax
neg eax
mov cl, byte [esp + 0x10]
test cl, cl
jne 0x4db0b2
cmp eax, ebp
je 0x4db35f
mov ecx, ebx
call fcn.004d9770
mov edx, dword [esp + 0x10]
mov eax, dword [ebx + 0x64]
mov dword [esp + 0x14], 0xffffffff
mov ecx, dword [eax + 0x7c]
push edx
push ecx
mov ecx, dword [ebx + 0x50]
call fcn.00481910
mov esi, dword [ebx + 0x60]
cmp esi, ebp
je 0x4db29c
mov eax, dword [esi + 4]
cmp word [eax + 8], 2
jne 0x4db28d
mov ecx, dword [eax + 0x4c]
call fcn.004f9ab0
test al, al
jne 0x4db110
mov ecx, dword [esi + 4]
add ecx, 0x1b8
call fcn.004ef2a0
test al, al
je 0x4db28d
mov eax, dword [esi + 4]
cmp dword [eax + 0xc], ebp
je 0x4db28d
cmp dword [eax + 0xe8], ebp
jne 0x4db146
push 0x50
call fcn.00439320
add esp, 4
cmp eax, ebp
je 0x4db13b
mov ecx, eax
call fcn.00481920
jmp 0x4db13d
xor eax, eax
mov edx, dword [esi + 4]
mov dword [edx + 0xe8], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0xe8]
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x50]
push eax
call dword [edx + 8]
mov edi, eax
cmp edi, ebp
je 0x4db28d
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 0xc]
push edx
mov ecx, edi
call fcn.004fb850
movzx ecx, byte [edi + 0xd]
movzx edx, byte [edi + 0xe]
xor eax, eax
mov ah, byte [edi + 0xf]
mov al, byte [edi + 0xc]
shl eax, 8
or eax, ecx
mov ecx, dword [esi + 4]
shl eax, 8
or eax, edx
push eax
add ecx, 0x310
call fcn.004ef5c0
push eax
mov ecx, edi
call fcn.004fb820
mov eax, dword [esi + 4]
cmp dword [eax + 0xf0], 1
jne 0x4db224
mov ecx, dword [eax + 0xec]
test ecx, ecx
jle 0x4db217
push 0x18
call fcn.00439320
add esp, 4
test eax, eax
je 0x4db1d7
push 1
mov ecx, eax
call fcn.004fb770
mov ebp, eax
jmp 0x4db1d9
xor ebp, ebp
push 1
mov ecx, ebp
call fcn.004fb800
mov ecx, edi
mov byte [ebp + 8], 9
call fcn.004d9040
mov ecx, dword [esi + 4]
add eax, dword [ecx + 0xec]
push eax
mov ecx, ebp
call fcn.004fb820
mov edx, dword [ebx + 0x64]
mov cl, byte [edx + 0x38]
mov eax, dword [ebp + 0x14]
mov byte [eax], cl
mov edx, dword [esi + 4]
mov eax, dword [edx + 0xc]
push eax
mov ecx, ebp
call fcn.004fb850
mov ecx, dword [esi + 4]
mov dword [ecx + 0xf0], 2
mov ecx, dword [esi + 4]
add ecx, 0x1b8
call fcn.004ef2a0
test al, al
je 0x4db25a
mov ecx, dword [esi + 4]
push edi
add ecx, 0x1b8
call fcn.004f2ba0
test ebp, ebp
je 0x4db281
mov ecx, dword [esi + 4]
push ebp
add ecx, 0x1b8
call fcn.004f2ba0
jmp 0x4db281
mov edx, dword [esi + 4]
mov ecx, dword [edx + 0x4c]
call fcn.004f9a90
mov ecx, dword [esi + 4]
push edi
add ecx, 0x4c
call fcn.004de9b0
test ebp, ebp
je 0x4db281
mov ecx, dword [esi + 4]
push ebp
add ecx, 0x4c
call fcn.004de9b0
mov ecx, dword [esi + 4]
push 1
call fcn.004efce0
xor ebp, ebp
mov esi, dword [esi]
cmp esi, ebp
jne 0x4db0e0
mov edi, 0x64
cmp dword [ebx + 0x54], ebp
jne 0x4db2a8
cmp dword [esp + 0x14], 0xffffffff
jne 0x4db307
cmp dword [ebx + 0x58], ebp
jne 0x4db2c9
push 0x50
call fcn.00439320
add esp, 4
cmp eax, ebp
je 0x4db2c4
mov ecx, eax
call fcn.00481920
jmp 0x4db2c6
xor eax, eax
mov dword [ebx + 0x58], eax
mov ecx, dword [ebx + 0x58]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push edx
mov edx, dword [ebx + 0x50]
push edx
call dword [eax + 8]
mov esi, eax
cmp dword [ebx + 0x54], ebp
je 0x4db2f3
cmp esi, ebp
mov dword [esp + 0x1c], esi
jne 0x4db307
mov dword [esp + 0x18], 1
jmp 0x4db307
cmp esi, ebp
je 0x4db307
mov ecx, esi
call fcn.004fb7d0
push esi
call fcn.00527b30
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, edi
sub ecx, edx
imul ecx, ecx, 0x64
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, edi
mov dword [ebx + 0x3c], eax
jle 0x4db32f
mov dword [ebx + 0x3c], edi
cmp dword [ebx + 0x3c], ebp
jge 0x4db337
mov dword [ebx + 0x3c], ebp
mov eax, dword [ebx + 0x64]
cmp dword [eax + 0x28], edi
je 0x4db35f
mov ecx, dword [esp + 0x30]
mov dword [ecx], 1
mov edx, dword [ebx + 0x64]
mov esi, dword [edx + 0x28]
mov eax, dword [ebx + 0x3c]
mov edx, dword [esp + 0x34]
xor ecx, ecx
cmp eax, esi
setge cl
mov dword [edx], ecx
lea esi, [ebx + 0x60]
mov edi, 2
mov eax, dword [esi]
cmp eax, ebp
je 0x4db381
lea ecx, [ecx]
mov ecx, dword [eax + 4]
cmp dword [ecx + 0xf0], edi
je 0x4db3bd
mov eax, dword [eax]
cmp eax, ebp
jne 0x4db370
cmp dword [esp + 0x18], ebp
je 0x4db3d3
mov edi, dword [esp + 0x28]
lea esi, [edi + 0x84]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [edi + 0x9c], ebp
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 8
mov edx, dword [eax + 4]
mov dword [edx + 0xf0], ebp
mov eax, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004db770
jmp 0x4db367
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x4db3ee
movzx edx, byte [esi + 0xb]
xor eax, eax
mov ah, byte [esi + 9]
mov al, byte [esi + 0xa]
shl eax, 8
or eax, edx
jmp 0x4db3f3
mov eax, 1
mov ecx, dword [ebx + 0x64]
fld qword [ecx + 0x58]
sub esp, 8
fstp qword [esp]
push eax
lea ecx, [ebx + 0x40]
call fcn.004d9070
push esi
mov ecx, ebx
call fcn.004d9f40
mov ebx, dword [esp + 0x28]
lea esi, [ebx + 0x84]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebx + 0x9c], ebp
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 8
call fcn.004dac50
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 8