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

Disassembly:
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x84]
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx]
mov ecx, dword [eax]
mov eax, dword [ebx + 4]
push ebp
mov ebp, dword [eax + 0x280]
push esi
mov esi, dword [ebx + 0x38]
push edi
mov edi, dword [ebx + 0x40]
add edi, esi
mov dword [esp + 0x74], edi
mov edi, dword [ebx + 0x44]
add edi, edx
mov dword [esp + 0x78], edi
mov edi, dword [eax + 0x284]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x60], edi
mov dword [esp + 0x48], ebp
mov ebp, dword [eax + 0x288]
add ebp, dword [esp + 0x48]
mov dword [esp + 0x14], eax
mov dword [esp + 0x64], ebp
mov eax, dword [eax + 0x28c]
add eax, edi
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 8]
mov dword [esp + 0x68], eax
mov edi, dword [ecx + 0x280]
mov eax, dword [ecx + 0x284]
mov ebp, dword [ecx + 0x288]
mov dword [esp + 0x24], ecx
mov ecx, dword [ecx + 0x28c]
add ebp, edi
mov dword [esp + 0x7c], edi
mov edi, dword [ebx + 0x30]
add ecx, eax
mov dword [esp + 0x6c], esi
sub edi, esi
mov esi, dword [ebx + 0x34]
mov dword [esp + 0x88], ecx
sub esi, edx
lea ecx, [esp + 0x6c]
mov dword [esp + 0x70], edx
mov dword [esp + 0x80], eax
lea eax, [esp + 0x5c]
mov edx, ecx
mov dword [esp + 0x20], 0
mov dword [esp + 0x84], ebp
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], esi
call fcn.003dbd20
test eax, eax
je 0x3dd044
mov ebp, dword [esp + 0x74]
mov ecx, dword [esp + 0x6c]
sub ebp, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
add ecx, edi
add ebp, ecx
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x78]
lea eax, [edx + esi]
sub ecx, edx
add ecx, eax
mov dword [esp + 0x68], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x60], eax
lea eax, [esp + 0x7c]
mov edx, ecx
mov dword [esp + 0x64], ebp
call fcn.003dbd20
test eax, eax
je 0x3dd044
mov edx, dword [esp + 0x60]
mov eax, edx
sub eax, esi
mov esi, dword [esp + 0x5c]
mov ecx, esi
sub ecx, edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x6c], ecx
sub edi, esi
mov esi, dword [esp + 0x18]
add edi, ecx
mov ecx, dword [esp + 0x68]
sub ecx, edx
add ecx, eax
push esi
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], ecx
call fcn.003bcd30
mov eax, dword [esi + 0x12544]
mov esi, dword [eax + 0x103a8]
mov edi, dword [eax + 0x103ac]
mov eax, dword [ebx + 0x50]
xor ecx, ecx
add esp, 4
test eax, eax
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
jbe 0x3dd167
mov edi, edi
mov eax, 1
shl eax, cl
cmp eax, 0x10000
mov dword [esp + 0x10], eax
jg 0x3dd167
test dword [ebx + 0x50], eax
je 0x3dd14a
mov edx, dword [ebx + 0x58]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
jbe 0x3dd14a
mov eax, 1
shl eax, cl
cmp eax, 0x10000
mov dword [esp + 0x30], eax
jg 0x3dd14a
test dword [ebx + 0x58], eax
je 0x3dd131
cmp esi, edi
mov dword [esp + 0x1c], esi
ja 0x3dd131
nop
mov ebp, 1
mov ecx, esi
shl ebp, cl
test dword [ebx + 0x54], ebp
mov dword [esp + 0x4c], ebp
je 0x3dd116
mov edi, dword [esp + 0x18]
lea edx, [esp + 0x7c]
push edx
lea ecx, [esp + 0x70]
push ecx
mov ecx, eax
mov eax, dword [esp + 0x1c]
call fcn.003dcc10
add esp, 8
test eax, eax
je 0x3dd10e
mov esi, dword [esp + 0x38]
or dword [esp + 0x20], ebp
mov dword [esp + 0x2c], esi
jmp 0x3dcf70
mov ecx, dword [esp + 0x1c]
cmp esi, ecx
je 0x3dd0fd
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 8]
test al, 8
je 0x3dcf9a
test al, al
js 0x3dcf9a
test byte [esp + 0x10], 3
je 0x3dcf9a
test ecx, ecx
je 0x3dd0fd
mov eax, 1
mov ecx, esi
shl eax, cl
test dword [ebx + 0x4c], eax
mov dword [esp + 0x50], eax
je 0x3dd0fd
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x84]
mov edi, dword [esp + 0x80]
mov eax, dword [esp + 0x58]
add ecx, edx
sub ebp, edx
mov edx, dword [esp + 0x88]
add eax, edi
sub edx, edi
mov edi, dword [esp + 0x18]
add edx, eax
mov dword [esp + 0x60], eax
add ebp, ecx
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], ecx
mov ecx, eax
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], edx
call fcn.003dcc10
add esp, 8
test eax, eax
je 0x3dd0fd
mov bl, byte [ebx + 0x48]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push ebx
call fcn.003dbe80
mov esi, dword [esp + 0x18]
add esp, 4
test byte [esi + 9], 1
mov ebp, eax
je 0x3dd04e
mov eax, dword [esp + 0x10]
mov cl, bl
mov edi, esi
call fcn.003dbff0
mov dword [esp + 0x28], eax
jmp 0x3dd052
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x7c
ret
mov dword [esp + 0x28], ebp
mov eax, dword [ebp + 0x114]
mov edx, dword [ebp + 0x110]
mov ecx, dword [esp + 0x64]
add dword [esp + 0x5c], edx
mov edi, dword [esp + 0x68]
add ecx, edx
mov edx, dword [esp + 0x60]
add edx, eax
add edi, eax
mov eax, dword [esp + 0x90]
cmp dword [eax + 0x48], 0
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], edi
je 0x3dd0c9
mov esi, dword [ebp + 0xac]
mov eax, dword [ebp + 0xb0]
imul ecx, esi
mov ebx, esi
imul edx, eax
imul edi, eax
imul ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x14]
sar ebx, 3
sar ecx, 3
sar edx, 3
sar edi, 3
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], edi
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x4c]
push 0
push 1
push 0
lea ecx, [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [esp + 0x2c]
push ebp
push eax
push ecx
push esi
push edx
call fcn.003cf940
mov ebx, dword [esp + 0xb8]
mov esi, dword [esp + 0x54]
add esp, 0x28
add esi, 1
cmp esi, dword [esp + 0x34]
mov dword [esp + 0x2c], esi
jbe 0x3dcf70
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
add esi, 1
cmp esi, edi
mov dword [esp + 0x1c], esi
jbe 0x3dcf20
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
shr edx, 1
add ecx, 1
test edx, edx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
ja 0x3dcef4
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
shr eax, 1
add ecx, 1
test eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
ja 0x3dcec0
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x7c
ret