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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 8]
cmp eax, dword [ecx + 8]
jbe 0x50452c
sub esp, 0x88
mov eax, dword [esp + 0x8c]
mov dword [esp], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 4], ecx
call fcn.00506bd0
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x504500
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x80], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x84], ecx
lea edx, [0x5ce6a0]
mov dword [esp], edx
mov ebx, dword [esp + 0x94]
mov dword [esp + 4], ebx
lea ebp, [esp + 0x80]
mov dword [esp + 8], ebp
call fcn.00405f00
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x5044e4
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x38], edx
mov eax, dword [eax + 0x10]
mov dword [esp + 0x20], eax
mov ebx, dword [ecx + 0x50]
mov dword [esp], edx
call ebx
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
lea ecx, [0x5cf4e0]
mov dword [esp], ecx
call fcn.0040d050
mov eax, dword [esp + 4]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 0x1c]
cmp ecx, 0x19
jge 0x503eb2
jae 0x504525
mov edx, dword [0x79e7b0]
lea ebx, [0x78b8a0]
mov ecx, dword [ebx + ecx*4]
test edx, edx
jne 0x5044cf
mov dword [eax], ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x503f3c
mov ecx, dword [eax]
test ecx, ecx
je 0x503edb
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0xa0], eax
add esp, 0x88
ret
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x503ee9
mov ecx, dword [ecx + 4]
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x70], ecx
mov eax, dword [esp + 0x90]
mov dword [esp + 0x74], eax
lea eax, [0x6023c1]
mov dword [esp], eax
mov dword [esp + 4], 0x1c
lea eax, [esp + 0x70]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00506450
mov eax, dword [esp + 0x6c]
jmp 0x503ec2
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x7c], ecx
lea edx, [0x5ce6a0]
mov dword [esp], edx
mov edx, dword [esp + 0x94]
mov dword [esp + 4], edx
lea ebx, [esp + 0x78]
mov dword [esp + 8], ebx
call fcn.00406470
mov eax, dword [esp + 0xc]
test byte [eax], al
mov ecx, dword [0x79e7b0]
test ecx, ecx
jne 0x5044ba
mov ecx, dword [esp + 0x6c]
mov dword [eax], ecx
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x50]
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
cmp eax, 0x14
ja 0x504122
cmp eax, 0x11
je 0x503ff3
cmp eax, 0x14
jne 0x503fed
mov eax, dword [0x79e7b0]
test eax, eax
jne 0x503fd1
lea eax, [0x609b88]
mov ecx, dword [esp + 0x6c]
mov dword [ecx], eax
mov eax, ecx
jmp 0x503ebc
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
lea ecx, [0x609b88]
mov dword [esp + 4], ecx
call fcn.0040d8c0
mov ecx, dword [esp + 0x6c]
jmp 0x503fca
mov ecx, dword [esp + 0x6c]
jmp 0x503fca
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0xc], eax
call fcn.00503db0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0x28]
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [eax + 0x50]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
lea ecx, [0x5ce660]
mov dword [esp], ecx
mov ecx, dword [0x78cfb0]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00407fa0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x48], eax
lea ecx, [0x5d93a0]
mov dword [esp], ecx
call fcn.0040d050
mov eax, dword [esp + 4]
mov dword [esp + 0x68], eax
lea ecx, [0x50b000]
mov dword [eax], ecx
mov ecx, dword [0x79e7b0]
lea edx, [eax + 4]
test ecx, ecx
jne 0x50410c
mov ecx, dword [esp + 0x4c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 8], ecx
mov ecx, dword [0x79e7b0]
lea edx, [eax + 0xc]
test ecx, ecx
jne 0x5040df
mov ecx, dword [esp + 0x48]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ecx], eax
jmp 0x503fca
mov dword [esp], edx
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
call fcn.0040d8c0
mov ecx, dword [esp + 0x6c]
jmp 0x503fca
mov dword [esp], edx
mov eax, dword [esp + 0x4c]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x68]
jmp 0x5040b9
cmp eax, 0x15
je 0x504380
cmp eax, 0x17
je 0x5041ee
cmp eax, 0x19
jne 0x503fed
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov dword [esp + 4], ecx
call fcn.00506bd0
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 4], eax
call fcn.00504c40
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
call fcn.0050a360
mov eax, dword [esp + 8]
mov dword [esp + 0x40], eax
lea ecx, [0x5d2080]
mov dword [esp], ecx
call fcn.0040d050
mov eax, dword [esp + 4]
lea ecx, [0x50b1b0]
mov dword [eax], ecx
mov ecx, dword [0x79e7b0]
lea edx, [eax + 4]
test ecx, ecx
jne 0x5041bd
mov ecx, dword [esp + 0x40]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ecx], eax
jmp 0x503fca
mov dword [esp + 0x64], eax
mov dword [esp], edx
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
call fcn.0040d8c0
mov ecx, dword [esp + 0x6c]
jmp 0x503fca
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [eax + 0x50]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
cmp eax, 8
jne 0x504251
mov eax, dword [0x79e7b0]
test eax, eax
jne 0x504232
lea eax, [0x609bb4]
mov ecx, dword [esp + 0x6c]
mov dword [ecx], eax
jmp 0x503fca
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
lea ecx, [0x609bb4]
mov dword [esp + 4], ecx
call fcn.0040d8c0
mov ecx, dword [esp + 0x6c]
jmp 0x503fca
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x28]
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0xc], eax
call fcn.00503db0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0x28]
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov eax, dword [eax + 0x50]
mov dword [esp], ecx
call eax
mov eax, dword [esp + 4]
lea ecx, [0x5ce660]
mov dword [esp], ecx
mov ecx, dword [0x78cfb4]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00407fa0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
lea ecx, [0x5d93a0]
mov dword [esp], ecx
call fcn.0040d050
mov eax, dword [esp + 4]
mov dword [esp + 0x60], eax
lea ecx, [0x50af00]
mov dword [eax], ecx
mov ecx, dword [0x79e7b0]
lea edx, [eax + 4]
test ecx, ecx
jne 0x50436a
mov ecx, dword [esp + 0x50]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov ecx, dword [0x79e7b0]
lea edx, [eax + 0xc]
test ecx, ecx
jne 0x50433d
mov ecx, dword [esp + 0x44]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x6c]
mov dword [ecx], eax
jmp 0x503fca
mov dword [esp], edx
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 4], ecx
call fcn.0040d8c0
mov ecx, dword [esp + 0x6c]
jmp 0x503fca
mov dword [esp], edx
mov eax, dword [esp + 0x50]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x60]
jmp 0x504317
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x4c]
mov edx, dword [esp + 0x38]
mov dword [esp], edx
call ecx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x98]
mov dword [esp + 0xc], ecx
call fcn.00503db0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x3c], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x34]
mov edx, dword [edx + 0x28]
mov ebx, dword [esp + 0x38]
mov dword [esp], ebx
call edx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x94]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x98]
mov dword [esp + 0xc], eax
call fcn.00503db0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
lea edx, [0x5dc800]
mov dword [esp], edx
call fcn.0040d050
mov eax, dword [esp + 4]
lea ecx, [0x50b0c0]
mov dword [eax], ecx
mov ecx, dword [0x79e7b0]
lea edx, [eax + 4]
lea ebx, [eax + 8]
test ecx, ecx
jne 0x504488
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x10], ecx
mov ecx, dword [0x79e7b0]
test ecx, ecx
jne 0x50446f
mov ecx, dword [esp + 0x6c]
mov dword [ecx], eax
jmp 0x503fca
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0040d8c0
mov ecx, dword [esp + 0x6c]
jmp 0x503fca
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], ebx
mov dword [esp], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x58]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 4], eax
call fcn.0040d8c0
mov eax, dword [esp + 0x5c]
jmp 0x50444c
mov dword [esp], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
call fcn.0040d8c0
jmp 0x503f8d
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.0040d8c0
mov eax, dword [esp + 0x6c]
jmp 0x503eb2
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
add esp, 0x88
ret
mov dword [esp], eax
call fcn.00504540
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], ecx
add esp, 0x88
ret
call fcn.00424360
ud2
call fcn.00446b60
jmp fcn.00503db0