Function at 0x421530
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4888cf
mov eax, dword fs:[0]
push eax
mov eax, 0x1500
call fcn.00465640
mov eax, dword [0x4bdbb0]
xor eax, esp
mov dword [esp + 0x14fc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bdbb0]
xor eax, esp
push eax
lea eax, [esp + 0x1514]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1528]
mov esi, ecx
mov dword [esp + 0x28], ebp
xor edi, edi
push str.OpenDocMgr_Start_
mov dword [esp + 0x1520], edi
call fcn.00427230
mov ebx, dword [esp + 0x1528]
push 0x8ab
lea eax, [esp + 0x68]
push edi
mov dword [0x4c2418], esi
push eax
mov dword [esi + 0x11ec], ebx
mov dword [esp + 0x28], edi
mov dword [esp + 0x6c], edi
call fcn.00463850
add esp, 0x10
lea ecx, [esp + 0x2c]
call fcn.0041f1a0
lea ecx, [esp + 0x44]
mov byte [esp + 0x151c], 1
call fcn.0041f1a0
push 0x8af
lea ecx, [esp + 0x60]
push edi
push ecx
mov byte [esp + 0x1528], 2
call fcn.00463850
push str.OpenDocMgr_1_
call fcn.00427230
mov eax, dword [ebp]
add esp, 0x10
push ebx
push eax
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x6c]
push ecx
mov ecx, esi
call fcn.00418e50
test eax, eax
jne 0x4216aa
mov eax, dword [esp + 0x50]
cmp eax, edi
je 0x421630
push eax
call fcn.00440d2e
add esp, 4
mov edx, dword [esp + 0x44]
push edx
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
call fcn.00440d2e
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, edi
je 0x42165a
push eax
call fcn.00440d2e
add esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
push eax
call fcn.00440d2e
add esp, 4
mov eax, dword [esp + 0x152c]
add eax, 0xfffffff0
mov dword [esp + 0x151c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421e6b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x421e6b
push str.OpenDocMgr_2_
call fcn.00427230
add esp, 4
cmp byte [esp + 0x603], 2
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], 0xffff
jne 0x421701
mov ecx, 0xffff
cmp word [esp + 0x60d], cx
je 0x421701
mov ax, word [esp + 0x60f]
movzx edx, ax
xor ecx, ecx
mov dword [esp + 0x24], edx
cmp cx, ax
jne 0x421701
mov dword [esi + 0x414], 1
jmp 0x421e4d
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x4c]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x6c]
push eax
mov ecx, esi
call fcn.0041b7c0
test eax, eax
jne 0x42199a
cmp byte [esp + 0x603], 2
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
jne 0x42180d
mov ecx, 0xffff
cmp word [esp + 0x60d], cx
je 0x42180d
mov eax, dword [esp + 0x24]
mov word [esp + 0x60f], ax
cmp ax, di
jne 0x421770
mov dword [esi + 0x414], 1
jmp 0x42180d
push 0x3fe
lea eax, [esp + 0x912]
xor edx, edx
push edi
push eax
mov word [esp + 0x918], dx
call fcn.00463850
push 0x400
lea edx, [esp + 0xd1e]
xor ecx, ecx
push edi
push edx
mov word [esp + 0xd24], cx
call fcn.00463850
add esp, 0x18
push 0x200
lea eax, [esp + 0xd10]
push eax
mov ecx, esi
call fcn.0040f450
push 0x48ffd0
lea ecx, [esp + 0xd10]
push ecx
lea edx, [esp + 0x914]
push 0x48e758
push edx
call ebx
mov eax, dword [ebp]
lea ecx, [esi + 0xdd8]
push ecx
lea edx, [esi + 8]
push edx
push eax
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x92c]
push ecx
push 4
call fcn.00426cd0
add esp, 0x28
test eax, eax
je 0x42180d
mov dword [esi + 0xdd4], edi
push 0
call fcn.00466118
add esp, 4
mov ebp, eax
mov edi, edx
call fcn.00449852
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x421835
push 0x80004005
call fcn.004108b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x626]
cmp ecx, edi
mov byte [esp + 0x151c], 3
jg 0x42191f
jl 0x42186d
mov edx, dword [esp + 0x622]
cmp edx, ebp
jae 0x42191f
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0x916]
push ecx
mov dword [esp + 0x62e], ebp
mov dword [esp + 0x632], edi
mov word [esp + 0x918], ax
call fcn.00463850
xor edx, edx
push 0x400
push edx
lea eax, [esp + 0xd22]
push eax
mov word [esp + 0xd24], dx
call fcn.00463850
add esp, 0x18
push 0x200
lea ecx, [esp + 0xd10]
push ecx
mov ecx, esi
call fcn.0040f450
push 0x48ffd0
lea edx, [esp + 0xd10]
push edx
lea eax, [esp + 0x914]
push 0x48e758
push eax
call ebx
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx]
lea edx, [esi + 0xdd8]
push edx
lea ecx, [esi + 8]
push ecx
push eax
lea edx, [esp + 0x78]
push edx
lea eax, [esp + 0x92c]
push eax
push 4
call fcn.00426cd0
add esp, 0x28
test eax, eax
je 0x42191f
mov dword [esi + 0xdd4], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x151c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421947
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
test eax, eax
je 0x421958
push eax
call fcn.00440d2e
add esp, 4
mov ecx, dword [esp + 0x44]
xor esi, esi
push ecx
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
call fcn.00440d2e
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, esi
je 0x421984
push eax
call fcn.00440d2e
add esp, 4
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
push edx
jmp 0x42166b
cmp byte [esp + 0x603], 2
jne 0x4219d6
mov ax, word [esp + 0x60d]
mov ecx, 0xffff
cmp ax, cx
je 0x4219d6
mov edx, ecx
mov ecx, dword [esp + 0x24]
cmp cx, dx
je 0x4219d6
cmp ax, cx
je 0x4219d6
mov word [esp + 0x60f], ax
mov dword [esp + 0x1c], 1
push str.OpenDocMgr_3_
call fcn.00427230
add esp, 4
call fcn.00449852
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x4219fd
push 0x80004005
call fcn.004108b0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, esi
mov byte [esp + 0x151c], 4
call fcn.00418b30
test eax, eax
jne 0x421a85
lea ecx, [esp + 0x14]
push str.StartODMHookExe_error
push ecx
call fcn.004135e0
mov esi, dword [esp + 0x1c]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x490f1c
call fcn.00427230
lea eax, [esi - 0x10]
add esp, 4
mov byte [esp + 0x151c], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x421a6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x44]
call fcn.00433980
lea ecx, [esp + 0x2c]
call fcn.00433980
jmp 0x421673
mov ebp, dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push str.esafenet_cdgout_exe32_20110929
push 0
push 0x1f0001
call ebp
test eax, eax
jne 0x421ab2
push 0xc8
call ebx
inc edi
cmp edi, 0x64
jl 0x421a91
jmp 0x421ac0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc8
call ebx
mov eax, dword [esp + 0x152c]
cmp dword [eax - 4], 1
jle 0x421ae4
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x1530]
call fcn.00410c10
mov eax, dword [esp + 0x152c]
push eax
mov ecx, esi
call fcn.004190d0
xor ebp, ebp
cmp eax, ebp
jne 0x421b88
push str.SetupSecretBox_error
lea edx, [esp + 0x18]
push edx
call fcn.004135e0
mov esi, dword [esp + 0x1c]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [esp + 0x151c], 2
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421b37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x50]
cmp eax, ebp
je 0x421b48
push eax
call fcn.00440d2e
add esp, 4
mov ecx, dword [esp + 0x44]
push ecx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x5c], ebp
call fcn.00440d2e
mov eax, dword [esp + 0x3c]
add esp, 4
cmp eax, ebp
je 0x421b72
push eax
call fcn.00440d2e
add esp, 4
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
push edx
jmp 0x42166b
mov ecx, dword [esp + 0x28]
mov eax, dword [ecx]
mov edx, dword [esp + 0x1524]
push edx
push eax
xor eax, eax
cmp dword [esp + 0x20], ebp
lea ecx, [esp + 0x64]
sete al
push eax
push ecx
mov ecx, esi
call fcn.0041ee20
test eax, eax
jne 0x421bbb
push str.ExtractionODMFile_error
jmp 0x421afb
lea ecx, [esp + 0x360]
push ecx
mov ecx, esi
call fcn.0041c3b0
test eax, eax
jne 0x421c08
lea edx, [esp + 0x14]
push str.DispAuthority_error
push edx
call fcn.004135e0
mov esi, dword [esp + 0x1c]
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [esp + 0x151c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x421a62
push str.OpenDocMgr_4_
call fcn.00427230
push 0x3fe
lea edx, [esp + 0x111a]
xor ecx, ecx
push ebp
push edx
xor edi, edi
mov word [esp + 0x1120], cx
call fcn.00463850
add esp, 0x10
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0041b670
mov eax, dword [esp + 0x20]
mov byte [esp + 0x151c], 5
cmp dword [eax - 0xc], ebp
je 0x421c78
push eax
push str.OpenDocMgr_getClientInstallPath___s_
call fcn.00427230
add esp, 8
lea ecx, [esp + 0x1110]
push ecx
lea edx, [esp + 0x364]
push edx
mov ecx, esi
call fcn.00416e50
mov edi, eax
push str.OpenDocMgr_5_
call fcn.00427230
xor ebx, ebx
add esp, 4
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
push str.OpenDocMgr_6_bRecycleFile_d_
mov dword [esi + 0x40c], eax
mov dword [esi + 0x408], eax
call fcn.00427230
add esp, 8
cmp edi, 1
jne 0x421d34
lea eax, [esp + 0x1110]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.0041ce00
lea edx, [esp + 0x1110]
push edx
lea ecx, [esi + 4]
call fcn.00411dd0
push 0x2537
lea eax, [esp + 0x18]
push str.RevertCDGFile_bRet___d
push eax
call fcn.004135e0
mov ecx, dword [esp + 0x20]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 0x20]
call fcn.004111f0
lea ecx, [esp + 0x14]
call fcn.004111f0
lea ecx, [esp + 0x44]
call fcn.00433980
lea ecx, [esp + 0x2c]
call fcn.00433980
lea ecx, [esp + 0x152c]
call fcn.004111f0
mov eax, 0x2537
jmp 0x421e6d
cmp edi, 4
jne 0x421d70
lea edx, [esp + 0x1110]
push edx
lea eax, [esp + 0x60]
push eax
mov ecx, esi
call fcn.0041cca0
push ebp
lea ecx, [esp + 0x18]
push str.RevertPlainTextFile_bRet___d
push ecx
call fcn.004135e0
mov edx, dword [esp + 0x20]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x421e3b
cmp edi, ebp
jne 0x421dd6
call fcn.00420500
test eax, eax
jne 0x421d8a
push str.DoHookCreateProcess_Error_
call fcn.00427230
add esp, 4
mov eax, dword [esp + 0x1524]
push eax
lea ecx, [esp + 0x60]
push ecx
mov ecx, esi
call fcn.00421500
mov ebx, eax
mov dword [esp + 0x18], ebx
cmp ebx, ebp
je 0x421db7
push str.CDocumentMgr::OpenDocMgr_OpenODMFile_return_true
call fcn.00427230
add esp, 4
jmp 0x421dc7
push str.CDocumentMgr::OpenDocMgr_OpenODMFile_return_false
call fcn.00427230
add esp, 4
or edi, 0xffffffff
cmp dword [esi + 0x11f0], ebp
jne 0x421dd6
mov ecx, esi
call fcn.0041d300
mov edx, dword [esi + 0x11e8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp ebx, ebp
je 0x421df3
movzx eax, byte [esp + 0x48b]
mov dword [esp + 0x18], eax
cmp edi, 0xffffffff
jne 0x421e0f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x28]
push ebp
push ecx
push edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x6c]
push ecx
jmp 0x421e25
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
push 1
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x6c]
push edx
mov ecx, esi
call fcn.0041cf60
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00402420
add esp, 4
lea ecx, [esp + 0x20]
call fcn.004111f0
lea ecx, [esp + 0x14]
call fcn.004111f0
lea ecx, [esp + 0x44]
call fcn.00433980
lea ecx, [esp + 0x2c]
call fcn.00433980
lea ecx, [esp + 0x152c]
call fcn.004111f0
xor eax, eax
mov ecx, dword [esp + 0x1514]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14fc]
xor ecx, esp
call fcn.004644d0
add esp, 0x150c
ret 0xc