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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0x88], ebp
mov dword [esi + 0x8c], esp
mov dword [esi + 0x98], 0xffffffff
mov dword [esi + 0x94], 0x4f6fc0
lea edi, [esi + 0x90]
mov eax, dword fs:[0]
mov dword [esi + 0x90], eax
mov dword fs:[0], edi
lock inc dword [0x57eac4]
jle 0x4dfa92
mov ebx, edx
mov edi, ecx
call fcn.004c7940
test eax, eax
jne 0x4df5c6
lea eax, [esi + 0x14]
mov ecx, 0x54bdcc
mov edx, 0x46
push 0x5488a0
push 0x547ab4
push eax
call fcn.00506fb0
add esp, 0xc
ud2
cmp byte [eax + 4], 0
jne 0x4dfb10
inc dword [eax]
mov byte [eax + 4], 1
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], str.OutOfRangeImpossibleNotEnoughInvalidTooShortTooLongBadFormat__NonexhaustiveEmpty
mov dword [esi + 0x30], 0x549138
movzx edx, byte [ebp + 0x10]
movzx ecx, byte [ebp + 0x14]
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x38], eax
mov byte [esi + 0x3c], dl
mov byte [esi + 0x3d], cl
push 0x57ea1c
call dword [sym.imp.kernel32.dll_AcquireSRWLockShared]
movzx eax, byte [0x57ea20]
cmp dword [0x57ea24], 0
mov eax, dword [ebx + 0x10]
jne 0x4df76e
mov byte [esi + 6], 1
mov dword [esi + 0x98], 0
push edi
call eax
add esp, 4
cmp byte [ebp + 0x14], 0
mov edi, eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edx
mov dword [esi + 0x10], eax
mov dword [esi + 8], edx
je 0x4df7f1
mov byte [esi + 0xe], 3
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x78]
mov dword [esi + 0x64], eax
mov eax, dword [edx + 0xc]
mov byte [esi + 6], 1
push edi
push ecx
call eax
mov ebx, dword [esi + 0x10]
add esp, 8
mov eax, dword [esi + 0x84]
mov ecx, dword [esi + 0x80]
mov edi, dword [esi + 0x78]
mov edx, dword [esi + 0x7c]
xor edi, 0xcd1e7bc1
xor ecx, 0xb1ef64
xor edx, 0xc1a2c89c
xor eax, 0xfdbc1681
or ecx, edi
or eax, edx
or eax, ecx
jne 0x4df831
mov eax, ebx
add eax, 4
mov ecx, dword [ebx]
mov eax, dword [eax]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], eax
mov byte [esi + 6], 1
call fcn.004c6340
mov edi, 9
mov ecx, 0x548ff4
test eax, eax
mov dword [esi + 0x10], eax
je 0x4df6d8
mov edx, dword [eax + 0x10]
test edx, edx
je 0x4df6d8
mov eax, dword [esi + 0x10]
mov ecx, edx
mov edi, dword [eax + 0x14]
dec edi
lea eax, [esi + 0x1c]
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x44], eax
lea eax, [esi + 0x64]
mov dword [esi + 0x48], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x4c], eax
lea eax, [esi + 0xe]
mov dword [esi + 0x50], eax
movzx eax, byte [0x57e9e0]
test al, al
jne 0x4df91c
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
mov dword [esi + 0x5c], 0
mov byte [esi + 0xf], 0
mov dword [esi + 0x98], 1
lea ecx, [esi + 0x44]
lea edx, [esi + 0x14]
push 0x549028
call fcn.004dea40
add esp, 4
xor edi, edi
xor ebx, ebx
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4df74d
lock dec dword [ecx]
jne 0x4df74d
call fcn.004c6180
test edi, edi
sete al
or bl, al
jne 0x4df7a2
lock dec dword [edi]
jne 0x4df7a2
mov ecx, edi
call fcn.004d2380
mov dword [esi + 0x98], 0
jmp 0x4df7a2
mov byte [esi + 6], 1
mov dword [esi + 0x98], 0
push edi
call eax
add esp, 4
mov dword [esi + 0x2c], eax
mov eax, dword [0x57ea24]
mov ecx, dword [0x57ea28]
mov dword [esi + 0x30], edx
lea edx, [esi + 0x2c]
mov byte [esi + 6], 1
push edx
push eax
call dword [ecx + 0x14]
add esp, 8
push 0x57ea1c
call dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
mov byte [esi + 6], 0
mov dword [esi + 0x98], 0
call fcn.004c7940
test eax, eax
jne 0x4df881
mov byte [esi + 6], 0
lea eax, [esi + 0x14]
mov ecx, 0x54bdcc
mov edx, 0x46
push 0x5488a0
push 0x547ab4
push eax
call fcn.00506fb0
add esp, 0xc
jmp 0x4dfa4e
mov byte [esi + 6], 1
call fcn.004c7940
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x10]
test eax, eax
jne 0x4df899
mov byte [esi + 6], 1
lea eax, [esi + 0x14]
mov ecx, 0x54bdcc
mov edx, 0x46
push 0x5488a0
push 0x547ab4
push eax
call fcn.00506fb0
add esp, 0xc
jmp 0x4dfa4e
mov eax, dword [esi + 8]
lea ecx, [esi + 0x68]
mov eax, dword [eax + 0xc]
mov byte [esi + 6], 1
push ebx
push ecx
call eax
mov ebx, dword [esi + 0x10]
add esp, 8
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
mov edi, dword [esi + 0x68]
mov edx, dword [esi + 0x6c]
xor edi, 0xcc437318
xor ecx, 0x6454bf92
xor edx, 0x2d6e8d36
xor eax, 0x70adbfa7
or ecx, edi
or eax, edx
or eax, ecx
jne 0x4df95b
mov eax, ebx
add eax, 8
jmp 0x4df6a4
cmp byte [ebp + 0x10], 0
mov byte [eax + 4], 0
je 0x4df8a7
mov byte [esi + 6], 0
call fcn.004d3360
jmp 0x4dfa4e
cmp dword [eax], 1
jbe 0x4df905
mov byte [esi + 0xe], 1
jmp 0x4df650
lea eax, [esi + 0x44]
mov dword [esi + 0x24], 0
mov dword [esi + 0x44], 0x5491f8
mov dword [esi + 0x48], 1
mov dword [esi + 0x54], 0
mov dword [esi + 0x4c], str.OutOfRangeImpossibleNotEnoughInvalidTooShortTooLongBadFormat__NonexhaustiveEmpty
mov byte [esi + 0x28], 0
mov dword [esi + 0x50], 0
mov byte [esi + 6], 0
lea ecx, [esi + 0x24]
lea edx, [esi + 0x1c]
push eax
push ecx
push edx
call fcn.004c5c90
add esp, 0xc
mov ecx, dword [esi + 0x1c]
mov edx, dword [esi + 0x20]
mov byte [esi + 6], 0
call fcn.004c5dc0
mov ecx, 7
int 0x29
ud2
mov byte [esi + 6], 1
call fcn.004d3370
mov edx, dword [esi + 8]
mov edi, dword [esi + 0x10]
mov byte [esi + 0xe], al
jmp 0x4df650
mov byte [0x57e9e0], 1
mov dword [esi + 0x98], 5
call fcn.004d2280
test eax, eax
jne 0x4df96a
lea eax, [esi + 0x14]
mov ecx, 0x54bdcc
mov edx, 0x46
push 0x5488a0
push 0x547ab4
push eax
call fcn.00506fb0
add esp, 0xc
jmp 0x4dfa4e
mov eax, 0xc
mov ecx, 0x548fe8
jmp 0x4df6a8
mov edi, dword [eax]
mov dword [eax], 0
test edi, edi
je 0x4df705
lea eax, [edi + 8]
mov dword [esi + 0x60], eax
push eax
call dword [sym.imp.kernel32.dll_AcquireSRWLockExclusive]
mov eax, dword [0x57eac4]
mov dword [esi + 8], edi
test eax, 0x7fffffff
jne 0x4df99f
mov dword [esi + 0x40], 0
jmp 0x4df9ba
mov byte [esi + 7], 1
mov dword [esi + 0x98], 2
call fcn.0050aa40
mov edi, dword [esi + 8]
xor al, 1
mov dword [esi + 0x40], eax
movzx eax, byte [edi + 0xc]
lea edx, [edi + 0x10]
mov dword [esi + 0x98], 4
lea ecx, [esi + 0x44]
push 0x549000
call fcn.004dea40
add esp, 4
cmp byte [esi + 0x40], 0
jne 0x4df9ed
mov eax, dword [0x57eac4]
test eax, 0x7fffffff
jne 0x4dfa50
push dword [esi + 0x60]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov byte [0x57e9e0], 1
mov dword [esi + 0x98], 3
call fcn.004d2280
test eax, eax
jne 0x4dfa73
mov eax, dword [esi + 8]
lock dec dword [eax]
jne 0x4dfa20
mov ecx, dword [esi + 8]
call fcn.004d2380
mov byte [esi + 7], 0
mov dword [esi + 0x98], 2
lea eax, [esi + 0x14]
mov ecx, 0x54bdcc
mov edx, 0x46
push 0x5488a0
push 0x547ab4
push eax
call fcn.00506fb0
add esp, 0xc
ud2
mov byte [esi + 7], 1
mov dword [esi + 0x98], 2
call fcn.0050aa40
test al, al
jne 0x4df9ed
mov eax, dword [esi + 8]
mov byte [eax + 0xc], 1
jmp 0x4df9ed
mov ecx, dword [eax]
mov edx, dword [esi + 8]
mov bl, 1
test ecx, ecx
mov dword [eax], edx
je 0x4dfa8a
lock dec dword [ecx]
jne 0x4dfa8a
call fcn.004d2380
mov edi, dword [esi + 8]
jmp 0x4df73c
mov eax, dword [ebp + 8]
mov dword [esi + 0x2c], str.OutOfRangeImpossibleNotEnoughInvalidTooShortTooLongBadFormat__NonexhaustiveEmpty
mov dword [esi + 0x30], 0x549138
mov dword [esi + 0x44], 0x54917c
mov dword [esi + 0x48], 2
mov dword [esi + 0x54], 0
lea ecx, [esi + 0x14]
lea edx, [esi + 0x24]
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
mov dword [esi + 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x38], eax
movzx eax, byte [ebp + 0x10]
mov byte [esi + 0x3c], al
movzx eax, byte [ebp + 0x14]
mov byte [esi + 0x3d], al
lea eax, [esi + 0x2c]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x1c]
mov dword [esi + 0x20], 0x424e90
mov dword [esi + 0x4c], eax
lea eax, [esi + 0x44]
mov dword [esi + 0x50], 1
push eax
push ecx
push edx
call fcn.004c5c90
add esp, 0xc
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x28]
jmp 0x4dfb58
lea eax, [esi + 0x44]
lea ecx, [esi + 0x1c]
lea edx, [esi + 0x2c]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x44], 0x5491c0
mov dword [esi + 0x48], 1
mov dword [esi + 0x54], 0
mov dword [esi + 0x4c], str.OutOfRangeImpossibleNotEnoughInvalidTooShortTooLongBadFormat__NonexhaustiveEmpty
mov byte [esi + 0x20], 0
mov dword [esi + 0x50], 0
push eax
push ecx
push edx
call fcn.004c5c90
add esp, 0xc
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x30]
call fcn.004c5dc0
mov ecx, 7
int 0x29
ud2