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

Disassembly:
push 0xffffffffffffffff
push 0x4621db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x40]
mov dword [esp + 0x18], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov ecx, 0x46a314
mov dword [esp + 0x34], ebx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov eax, 0x46a310
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ecx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov byte [esp + 0x34], 4
call fcn.00455d7b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xa4], eax
mov byte [esp + 0x34], 5
call fcn.00455d7b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi + 0xa8], eax
mov byte [esp + 0x34], 6
mov dword [esi + 0x5c], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebx
lea esp, [esp]
push 8
call fcn.00455c6e
add esp, 4
push 1
push eax
lea ecx, [esp + 0x24]
call fcn.0040d380
mov eax, dword [edi + 4]
cmp eax, ebx
mov byte [esp + 0x34], 7
jne 0x40de86
xor edx, edx
jmp 0x40de8e
mov edx, dword [edi + 8]
sub edx, eax
sar edx, 4
cmp eax, ebx
je 0x40debf
mov ecx, dword [edi + 0xc]
sub ecx, eax
sar ecx, 4
cmp edx, ecx
jae 0x40debf
mov eax, dword [esp + 0x18]
mov ebp, dword [edi + 8]
push eax
push edi
lea ecx, [esp + 0x24]
push ecx
push 1
push ebp
call fcn.0040d740
add esp, 0x14
add ebp, 0x10
mov dword [edi + 8], ebp
jmp 0x40ded1
mov eax, dword [edi + 8]
lea edx, [esp + 0x1c]
push edx
push 1
push eax
mov ecx, edi
call fcn.0040d910
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 6
call fcn.0040cf90
mov eax, dword [esi + 0x44]
mov edx, dword [esp + 0x14]
mov ecx, dword [eax + edx + 0xc]
add eax, edx
cmp ecx, ebx
je 0x40def5
mov ecx, dword [ecx + 0xc]
jmp 0x40def7
xor ecx, ecx
mov ebp, dword [eax + 8]
mov eax, dword [eax + 4]
imul ebp, ecx
mov ecx, dword [esi + 0x5c]
mov dword [eax + ebp], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x47ee38]
mov ebp, dword [eax]
xor ecx, ecx
cmp ebp, ebx
je 0x40df29
mov ebp, dword [esi + 0x5c]
inc ebp
add eax, 8
mov dword [esi + 0x5c], ebp
mov ebp, dword [eax]
inc ecx
cmp ebp, ebx
jne 0x40df18
mov eax, dword [esi + 0x44]
add eax, edx
mov edx, dword [eax + 0xc]
cmp edx, ebx
je 0x40df3a
mov edx, dword [edx + 0xc]
jmp 0x40df3c
xor edx, edx
mov ebp, dword [eax + 8]
imul ebp, edx
mov edx, dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [edx + ebp + 4], ecx
mov edx, dword [esp + 0x14]
add eax, 8
add edx, 0x10
cmp eax, 0x318
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jb 0x40de60
mov edi, dword [esi + 0x5c]
cmp edi, ebx
je 0x40dfb0
mov eax, dword [esi + 0x64]
cmp eax, ebx
je 0x40df8c
cmp dword [esi + 0x68], ebx
je 0x40df8c
push eax
call fcn.00455c9e
add esp, 4
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
push edi
mov dword [esi + 0x68], edi
call fcn.00455c99
mov ecx, dword [esi + 0x68]
mov edx, ecx
mov edi, eax
shr ecx, 2
xor eax, eax
mov dword [esi + 0x64], edi
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x54]
cmp eax, ebx
je 0x40dfcb
cmp dword [esi + 0x58], ebx
je 0x40dfcb
push eax
call fcn.00455c9e
add esp, 4
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov ebp, 4
push 0x10
mov dword [esi + 0x58], ebp
call fcn.00455c99
mov ecx, dword [esi + 0x58]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
xor eax, eax
mov dword [esi + 0x54], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x58]
add esp, 4
xor edx, edx
cmp eax, ebx
jbe 0x40e039
mov eax, dword [esi + 0x54]
mov dword [eax + edx*4], ebx
mov ecx, dword [edx*4 + 0x47f270]
cmp word [ecx], bx
jl 0x40e031
xor ecx, ecx
mov eax, dword [esi + 0x54]
mov edi, dword [eax + edx*4]
lea eax, [eax + edx*4]
inc edi
mov dword [eax], edi
mov eax, dword [edx*4 + 0x47f270]
add ecx, 2
cmp word [ecx + eax], bx
jge 0x40e015
mov eax, dword [esi + 0x58]
inc edx
cmp edx, eax
jb 0x40e001
mov edi, 0x2b
mov dword [esi + 0x78], edi
mov eax, dword [esi + 0x80]
cmp eax, ebx
je 0x40e068
cmp dword [esi + 0x84], ebx
je 0x40e068
push eax
call fcn.00455c9e
add esp, 4
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
push edi
mov dword [esi + 0x84], edi
call fcn.00455c99
mov ecx, dword [esi + 0x84]
mov edx, ecx
mov edi, eax
shr ecx, 2
xor eax, eax
mov dword [esi + 0x80], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x70]
add esp, 4
cmp eax, ebx
je 0x40e0b0
cmp dword [esi + 0x74], ebx
je 0x40e0b0
push eax
call fcn.00455c9e
add esp, 4
mov dword [esi + 0x70], ebx
mov dword [esi + 0x74], ebx
push 0x10
mov dword [esi + 0x74], ebp
call fcn.00455c99
mov ecx, dword [esi + 0x74]
shl ecx, 2
mov edx, ecx
mov edi, eax
shr ecx, 2
xor eax, eax
mov dword [esi + 0x70], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x74]
add esp, 4
xor edx, edx
cmp eax, ebx
jbe 0x40e119
mov eax, dword [esi + 0x70]
mov dword [eax + edx*4], ebx
mov ecx, dword [edx*4 + 0x47f450]
cmp word [ecx], bx
jl 0x40e111
xor ecx, ecx
mov eax, dword [esi + 0x70]
mov edi, dword [eax + edx*4]
lea eax, [eax + edx*4]
inc edi
mov dword [eax], edi
mov eax, dword [edx*4 + 0x47f450]
add ecx, 2
cmp word [ecx + eax], bx
jge 0x40e0f5
mov eax, dword [esi + 0x74]
inc edx
cmp edx, eax
jb 0x40e0e1
mov dword [esi + 0x3c], 0x3c
mov ecx, dword [esi + 0xa4]
mov edx, dword [ecx - 0xc]
cmp edx, ebx
mov edi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x40e17d
mov ebp, dword [eax + 0xc]
cmp ebp, ebx
lea edx, [eax + 0xc]
jge 0x40e159
cmp dword [ecx - 8], ebx
jge 0x40e14c
push 0x80070057
call fcn.00401190
mov dword [ecx - 0xc], ebx
mov ecx, dword [esi + 0xa4]
mov byte [ecx], bl
jmp 0x40e17d
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e16d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0xa4], eax
mov ecx, dword [esi + 0xa8]
mov edx, dword [ecx - 0xc]
cmp edx, ebx
mov edi, dword [ecx - 0x10]
lea eax, [ecx - 0x10]
je 0x40e1ed
mov ebp, dword [eax + 0xc]
cmp ebp, ebx
lea edx, [eax + 0xc]
jge 0x40e1c9
cmp dword [ecx - 8], ebx
jge 0x40e1a9
push 0x80070057
call fcn.00401190
mov dword [ecx - 0xc], ebx
mov ecx, dword [esi + 0xa8]
pop edi
mov eax, esi
pop esi
pop ebp
mov byte [ecx], bl
pop ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40e1dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0xa8], eax
mov ecx, dword [esp + 0x2c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x28
ret